RouteUnit { public Set<String> getLogicTableNames() { return tableMappers.stream().map(RouteMapper::getLogicName).collect(Collectors.toCollection(() -> new HashSet<>(tableMappers.size(), 1))); }  Set<String> getLogicTableNames(); Set<String> getActualTableNames(final String logicTableName); Optional<RouteMapper> findTableMapper(final String logicDataSourceName, final String actualTableName);  }
@Test public void assertGetLogicTableNames() { Set<String> actual = routeUnit.getLogicTableNames(); assertThat(actual.size(), is(1)); assertTrue(actual.contains(LOGIC_TABLE)); }