RegistryCenter { public void persistInstanceOnline() { repository.persistEphemeral(node.getProxyNodePath(instance.getInstanceId()), ""); } RegistryCenter(final RegistryRepository registryRepository); void persistInstanceOnline(); void persistDataNodes(); void persistInstanceData(final String instanceData); String loadInstanceData(); Collection<String> loadDisabledDataSources(final String schemaName);  }
@Test public void assertPersistInstanceOnline() { registryCenter.persistInstanceOnline(); verify(registryRepository).persistEphemeral(anyString(), anyString()); }