### Question:
IncludeTable extends PatternParam { org.apache.cayenne.dbsync.reverse.dbimport.IncludeTable toIncludeTable() { org.apache.cayenne.dbsync.reverse.dbimport.IncludeTable table = new org.apache.cayenne.dbsync.reverse.dbimport.IncludeTable(); table.setPattern(getPattern()); for(PatternParam includeColumn : includeColumns) { table.addIncludeColumn(includeColumn.toIncludeColumn()); } for(PatternParam excludeColumn : excludeColumns) { table.addExcludeColumn(excludeColumn.toExcludeColumn()); } for(PatternParam excludeRelationship : excludeRelationships){ table.addExcludeRelationship(excludeRelationship.toExcludeRelationship()); } return table; } IncludeTable();   IncludeTable(String pattern); void setName(String name); void name(String name); void includeColumn(String pattern); void includeColumns(String... patterns); void excludeColumn(String pattern); void excludeColumns(String... patterns); void excludeRelationship(String pattern); void excludeRelationships(String... patterns);  }### Answer:
@Test public void toIncludeTable() throws Exception { IncludeTable table = new IncludeTable("name"); table.includeColumns("column1", "column2"); table.excludeColumns("column3", "column4", "column5"); org.apache.cayenne.dbsync.reverse.dbimport.IncludeTable rrTable = table.toIncludeTable(); assertEquals("name", rrTable.getPattern()); assertEquals(2, rrTable.getIncludeColumns().size()); assertEquals(3, rrTable.getExcludeColumns().size()); }