### Question:
FacadeService { public Optional<CloudJobConfiguration> load(final String jobName) { return jobConfigService.load(jobName); } FacadeService(final CoordinatorRegistryCenter regCenter); void start(); Collection<JobContext> getEligibleJobContext(); void removeLaunchTasksFromQueue(final List<TaskContext> taskContexts); void addRunning(final TaskContext taskContext); void updateDaemonStatus(final TaskContext taskContext, final boolean isIdle); void removeRunning(final TaskContext taskContext); void recordFailoverTask(final TaskContext taskContext); void addTransient(final String jobName); Optional<CloudJobConfiguration> load(final String jobName); Optional<CloudAppConfiguration> loadAppConfig(final String appName); Optional<String> getFailoverTaskId(final TaskContext.MetaInfo metaInfo); void addDaemonJobToReadyQueue(final String jobName); boolean isRunning(final TaskContext taskContext); void addMapping(final String taskId, final String hostname); String popMapping(final String taskId); Map<String, Integer> getAllReadyTasks(); Map<String, Set<TaskContext>> getAllRunningTasks(); Map<String, Collection<FailoverTaskInfo>> getAllFailoverTasks(); boolean isJobDisabled(final String jobName); void enableJob(final String jobName); void disableJob(final String jobName); Collection<MesosStateService.ExecutorStateInfo> loadExecutorInfo(); void stop();  }### Answer:
@Test public void assertLoadJobConfig() { Optional<CloudJobConfiguration> jobConfigOptional = Optional.of(CloudJobConfigurationBuilder.createCloudJobConfiguration("test_job")); Mockito.when(jobConfigService.load("test_job")).thenReturn(jobConfigOptional); Assert.assertThat(facadeService.load("test_job"), Is.is(jobConfigOptional)); }
@Test public void assertLoadJobConfigWhenAbsent() { Mockito.when(jobConfigService.load("test_job")).thenReturn(Optional.<CloudJobConfiguration>absent()); Assert.assertThat(facadeService.load("test_job"), Is.is(Optional.<CloudJobConfiguration>absent())); }