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