JobAPIFactory { public static JobOperateAPI createJobOperateAPI(final String connectString, final String namespace, final Optional<String> digest) { return new JobOperateAPIImpl(RegistryCenterFactory.createCoordinatorRegistryCenter(connectString, namespace, digest)); }  static JobSettingsAPI createJobSettingsAPI(final String connectString, final String namespace, final Optional<String> digest); static JobOperateAPI createJobOperateAPI(final String connectString, final String namespace, final Optional<String> digest); static JobStatisticsAPI createJobStatisticsAPI(final String connectString, final String namespace, final Optional<String> digest); static ServerStatisticsAPI createServerStatisticsAPI(final String connectString, final String namespace, final Optional<String> digest);  }
@Test public void assertCreateJobOperateAPI() { assertThat(JobAPIFactory.createJobOperateAPI(ZK_CONNECTION_STRING, "namespace", Optional.<String>absent()), instanceOf(JobOperateAPI.class)); }