RegistryCenterNode { public Collection<String> getAllSchemaPaths(final Collection<String> schemaNames) { Collection<String> result = new ArrayList<>(schemaNames.size()); for (String schemaName : schemaNames) { result.add(getSchemaPath(schemaName)); } return result; }  String getProxyNodePath(final String instanceId); String getDataNodesPath(); String getSchemaPath(final String schemaName); String getDataSourcePath(final String schemaName, final String dataSourceName); Optional<GovernanceSchema> getGovernanceSchema(final String dataSourceNodeFullPath); Collection<String> getAllSchemaPaths(final Collection<String> schemaNames);  }
@Test public void assertGetAllSchemaPaths() { Collection<String> schemaPaths = registryCenterNode.getAllSchemaPaths(Arrays.asList("primary_replica_db", "sharding_db")); assertThat(schemaPaths.size(), is(2)); assertThat(schemaPaths, hasItem("/states/datanodes/primary_replica_db")); assertThat(schemaPaths, hasItem("/states/datanodes/sharding_db")); }