GeneratedKeysResultSetMetaData extends WrapperAdapter implements ResultSetMetaData { @Override public String getColumnName(final int column) { Preconditions.checkArgument(column == 1); return generatedKeyColumn; }  @Override int getColumnCount(); @Override boolean isAutoIncrement(final int column); @Override boolean isCaseSensitive(final int column); @Override boolean isSearchable(final int column); @Override boolean isCurrency(final int column); @Override int isNullable(final int column); @Override boolean isSigned(final int column); @Override int getColumnDisplaySize(final int column); @Override String getColumnLabel(final int column); @Override String getColumnName(final int column); @Override String getSchemaName(final int column); @Override int getPrecision(final int column); @Override int getScale(final int column); @Override String getTableName(final int column); @Override String getCatalogName(final int column); @Override int getColumnType(final int column); @Override String getColumnTypeName(final int column); @Override boolean isReadOnly(final int column); @Override boolean isWritable(final int column); @Override boolean isDefinitelyWritable(final int column); @Override String getColumnClassName(final int column);  }
@Test public void assertGetColumnName() throws SQLException { assertThat(actualMetaData.getColumnName(1), is("order_id")); }