RegistryCenter { public void persistDataNodes() { repository.persist(node.getDataNodesPath(), ""); } RegistryCenter(final RegistryRepository registryRepository); void persistInstanceOnline(); void persistDataNodes(); void persistInstanceData(final String instanceData); String loadInstanceData(); Collection<String> loadDisabledDataSources(final String schemaName);  }
@Test public void assertPersistDataSourcesNode() { registryCenter.persistDataNodes(); verify(registryRepository).persist("/states/datanodes", ""); }