SetUpFacade { public JobConfiguration setUpJobConfiguration(final String jobClassName, final JobConfiguration jobConfig) { return configService.setUpJobConfiguration(jobClassName, jobConfig); } SetUpFacade(final CoordinatorRegistryCenter regCenter, final String jobName, final Collection<ElasticJobListener> elasticJobListeners); JobConfiguration setUpJobConfiguration(final String jobClassName, final JobConfiguration jobConfig); void registerStartUpInfo(final boolean enabled);  }
@Test public void assertSetUpJobConfiguration() { JobConfiguration jobConfig = JobConfiguration.newBuilder("test_job", 3) .cron("0/1 * * * * ?").setProperty("streaming.process", Boolean.TRUE.toString()).build(); when(configService.setUpJobConfiguration(ElasticJob.class.getName(), jobConfig)).thenReturn(jobConfig); assertThat(setUpFacade.setUpJobConfiguration(ElasticJob.class.getName(), jobConfig), is(jobConfig)); verify(configService).setUpJobConfiguration(ElasticJob.class.getName(), jobConfig); }