TableMetaData { public boolean isPrimaryKey(final int columnIndex) { return columnIndex < columnNames.size() && columns.get(columnNames.get(columnIndex)).isPrimaryKey(); } TableMetaData();  TableMetaData(final Collection<ColumnMetaData> columnMetaDataList, final Collection<IndexMetaData> indexMetaDataList); ColumnMetaData getColumnMetaData(final int columnIndex); int findColumnIndex(final String columnName); boolean isPrimaryKey(final int columnIndex);  }
@Test public void assertIsPrimaryKey() { assertTrue(tableMetaData.isPrimaryKey(0)); assertFalse(tableMetaData.isPrimaryKey(1)); }