TablesContext { public Collection<String> getTableNames() { Collection<String> result = new LinkedHashSet<>(tables.size(), 1); for (SimpleTableSegment each : tables) { result.add(each.getTableName().getIdentifier().getValue()); } return result; } TablesContext(final SimpleTableSegment tableSegment);  TablesContext(final Collection<SimpleTableSegment> tableSegments); Collection<String> getTableNames(); Optional<String> findTableName(final ColumnSegment column, final SchemaMetaData schemaMetaData); Optional<String> findTableName(final ColumnProjection column, final SchemaMetaData schemaMetaData); String findTableNameFromSQL(final String tableNameOrAlias);  }
@Test public void assertGetTableNames() { TablesContext tablesContext = new TablesContext(Arrays.asList(createTableSegment("table_1", "tbl_1"), createTableSegment("table_2", "tbl_2"))); assertThat(tablesContext.getTableNames(), is(Sets.newHashSet("table_1", "table_2"))); }