### Question:
ShardingRule { public boolean isAllBindingTables(final Collection<String> logicTables) { Collection<String> bindingTables = filterAllBindingTables(logicTables); return !bindingTables.isEmpty() && bindingTables.containsAll(logicTables); } @Deprecated  ShardingRule(
            final DataSourceRule dataSourceRule, final Collection<TableRule> tableRules, final Collection<BindingTableRule> bindingTableRules, 
            final DatabaseShardingStrategy databaseShardingStrategy, final TableShardingStrategy tableShardingStrategy, final KeyGenerator keyGenerator); static ShardingRuleBuilder builder(); Optional<TableRule> tryFindTableRule(final String logicTableName); TableRule getTableRule(final String logicTableName); DatabaseShardingStrategy getDatabaseShardingStrategy(final TableRule tableRule); TableShardingStrategy getTableShardingStrategy(final TableRule tableRule); boolean isAllBindingTables(final Collection<String> logicTables); Collection<String> filterAllBindingTables(final Collection<String> logicTables); Optional<BindingTableRule> findBindingTableRule(final String logicTable); boolean isShardingColumn(final Column column); Optional<String> getGenerateKeyColumn(final String tableName); Number generateKey(final String tableName);  }### Answer:
@Test public void assertIsAllBindingTableWhenLogicTablesIsEmpty() { assertFalse(createShardingRule().isAllBindingTables(Collections.<String>emptyList())); }
@Test public void assertIsNotAllBindingTable() { assertFalse(createShardingRule().isAllBindingTables(Collections.singletonList("newTable"))); assertFalse(createShardingRule().isAllBindingTables(Arrays.asList("logicTable", "newTable"))); }
@Test public void assertIsAllBindingTable() { assertTrue(createShardingRule().isAllBindingTables(Collections.singletonList("logicTable"))); assertTrue(createShardingRule().isAllBindingTables(Collections.singletonList("subLogicTable"))); assertTrue(createShardingRule().isAllBindingTables(Arrays.asList("logicTable", "subLogicTable"))); }