Mock SparkCore via arguments