RouteContext { public List<Set<String>> getActualTableNameGroups(final String actualDataSourceName, final Set<String> logicTableNames) { return logicTableNames.stream().map(each -> getActualTableNames(actualDataSourceName, each)).filter(actualTableNames -> !actualTableNames.isEmpty()).collect(Collectors.toList()); }  boolean isSingleRouting(); Collection<String> getActualDataSourceNames(); List<Set<String>> getActualTableNameGroups(final String actualDataSourceName, final Set<String> logicTableNames); Map<String, Set<String>> getDataSourceLogicTablesMap(final Collection<String> actualDataSourceNames); Optional<RouteMapper> findTableMapper(final String logicDataSourceName, final String actualTableName);  }
@Test public void assertGetActualTableNameGroups() { Set<String> logicTableSet = new HashSet<>(); logicTableSet.add(LOGIC_TABLE); List<Set<String>> actual = multiRouteContext.getActualTableNameGroups(DATASOURCE_NAME_1, logicTableSet); assertThat(actual.size(), is(1)); assertTrue(actual.get(0).contains(ACTUAL_TABLE)); }