TableMetaDataAdapter implements ITableMetaData { @Override public Column[] getColumns() throws DataSetException { return columnsCache; } TableMetaDataAdapter(final TableType tableType); @Override String getTableName(); @Override Column[] getColumns(); @Override Column[] getPrimaryKeys(); @Override int getColumnIndex(final String columnName);  }
@Test public void testGetColumns() throws DataSetException { final Column[] columns = tableMetaData.getColumns(); assertThat(Arrays.asList(columns), contains( new Column("ID", org.dbunit.dataset.datatype.DataType.INTEGER), new Column("NAME", org.dbunit.dataset.datatype.DataType.VARCHAR)) ); }