RouteUnit { public Set<String> getActualTableNames(final String logicTableName) { return tableMappers.stream().filter(each -> logicTableName.equalsIgnoreCase(each.getLogicName())).map(RouteMapper::getActualName).collect(Collectors.toSet()); }  Set<String> getLogicTableNames(); Set<String> getActualTableNames(final String logicTableName); Optional<RouteMapper> findTableMapper(final String logicDataSourceName, final String actualTableName);  }
@Test public void assertGetActualTableNames() { Set<String> actual = routeUnit.getActualTableNames(LOGIC_TABLE); assertThat(actual.size(), is(2)); assertTrue(actual.contains(ACTUAL_TABLE_0)); assertTrue(actual.contains(ACTUAL_TABLE_1)); }