TableMetaData implements TableMetaDataView { @Override public List<String> getKeyColumnNames() { return this.keyColumnNames; } TableMetaData(String catalogName, String schemaName, String tableName,
      List<String> keyColumnNames, String quoteString,
      Map<String, ColumnMetaData> columnMetaDataMap); @Override String getQuotedTablePath(); @Override List<String> getKeyColumnNames(); @Override JDBCType getColumnDataType(String columnName); @Override boolean isColumnNullable(String columnName); @Override Set<String> getColumnNames(); @Override String getIdentifierQuoteString();  }
@Test public void verifyKeyColumnNames() { keyColumnNames = Arrays.asList("c1", "c2"); createTableMetaData(); assertThat(tableMetaData.getKeyColumnNames()).isEqualTo(keyColumnNames); }