ConfigCenterNode { public Collection<String> getAllSchemaConfigPaths(final Collection<String> schemaNames) { Collection<String> result = new ArrayList<>(Collections.singletonList(getSchemasPath())); for (String schemaName : schemaNames) { result.add(getSchemaNamePath(schemaName)); result.add(getRulePath(schemaName)); result.add(getDataSourcePath(schemaName)); result.add(getTablePath(schemaName)); } return result; }  String getSchemasPath(); String getSchemaNamePath(final String schemaName); String getDataSourcePath(final String schemaName); String getRulePath(final String schemaName); String getTablePath(final String schemaName); String getAuthenticationPath(); String getPropsPath(); String getSchemaName(final String configurationNodeFullPath); Collection<String> splitSchemaName(final String schemaNames); Collection<String> getAllSchemaConfigPaths(final Collection<String> schemaNames);  }
@Test public void assertGetAllSchemaConfigPaths() { Collection<String> actual = configurationNode.getAllSchemaConfigPaths(Collections.singletonList(DefaultSchema.LOGIC_NAME)); assertThat(actual.size(), is(5)); assertThat(actual, hasItems("/schemas")); assertThat(actual, hasItems("/schemas/logic_db")); assertThat(actual, hasItems("/schemas/logic_db/rule")); assertThat(actual, hasItems("/schemas/logic_db/datasource")); assertThat(actual, hasItems("/schemas/logic_db/table")); }