### Question:
FilterContainer { <C extends org.apache.cayenne.dbsync.reverse.dbimport.FilterContainer> C fillContainer(final C container) { container.setName(name); for(IncludeTable table : includeTables) { container.addIncludeTable(table.toIncludeTable()); } for(PatternParam table : excludeTables) { container.addExcludeTable(table.toExcludeTable()); } for(PatternParam column : includeColumns) { container.addIncludeColumn(column.toIncludeColumn()); } for(PatternParam column : excludeColumns) { container.addExcludeColumn(column.toExcludeColumn()); } for(PatternParam procedure : includeProcedures) { container.addIncludeProcedure(procedure.toIncludeProcedure()); } for(PatternParam procedure : excludeProcedures) { container.addExcludeProcedure(procedure.toExcludeProcedure()); } for(PatternParam rel : excludeRelationships) { container.addExcludeRelationship(rel.toExcludeRelationship()); } return container; } FilterContainer();   FilterContainer(String name); void name(String name); void includeTable(String pattern); void includeTable(Closure<?> closure); void includeTable(String pattern, Closure<?> closure); void includeTables(String... patterns); void excludeTable(String pattern); void excludeTables(String... patterns); void includeColumn(String pattern); void includeColumns(String... patterns); void excludeColumn(String pattern); void excludeColumns(String... patterns); void excludeRelationship(String pattern); void excludeRelationships(String... patterns); void includeProcedure(String pattern); void includeProcedures(String... patterns); void excludeProcedure(String pattern); void excludeProcedures(String... patterns); String getName(); void setName(String name);  }### Answer:
@Test public void fillContainer() throws Exception { Catalog catalog = new Catalog(); FilterContainer container = new FilterContainer(); container.setName("name"); container.includeTable("table1"); container.includeTables("table2", "table3"); container.excludeTable("table4"); container.excludeTables("table5", "table6"); container.includeColumn("column1"); container.includeColumns("column2", "column3"); container.excludeColumn("column4"); container.excludeColumns("column5", "collum6"); container.includeProcedure("proc1"); container.includeProcedures("proc2", "proc3"); container.excludeProcedure("proc4"); container.excludeProcedures("proc5", "proc6"); container.fillContainer(catalog); assertEquals("name", catalog.getName()); assertEquals(3, catalog.getIncludeTables().size()); assertEquals("table1", catalog.getIncludeTables().iterator().next().getPattern()); assertEquals(3, catalog.getExcludeTables().size()); assertEquals("table4", catalog.getExcludeTables().iterator().next().getPattern()); assertEquals(3, catalog.getIncludeColumns().size()); assertEquals("column1", catalog.getIncludeColumns().iterator().next().getPattern()); assertEquals(3, catalog.getExcludeColumns().size()); assertEquals("column4", catalog.getExcludeColumns().iterator().next().getPattern()); assertEquals(3, catalog.getIncludeProcedures().size()); assertEquals("proc1", catalog.getIncludeProcedures().iterator().next().getPattern()); assertEquals(3, catalog.getExcludeProcedures().size()); assertEquals("proc4", catalog.getExcludeProcedures().iterator().next().getPattern()); }