### Question:
MetadataTableModel extends AbstractTableModel { @Override public String getColumnName(final int columnIndex) { if (columnIndex >= getColumnCount()) { throw new IdropRuntimeException("column unavailable, out of bounds"); } if (columnIndex == 0) { return "Attribute"; } if (columnIndex == 1) { return "Value"; } if (columnIndex == 2) { return "Unit"; } throw new IdropRuntimeException("unknown column"); } MetadataTableModel(
            final List<MetaDataAndDomainData> metadataAndDomainData); @Override Class<?> getColumnClass(final int columnIndex); @Override String getColumnName(final int columnIndex); @Override int getRowCount(); @Override int getColumnCount(); @Override Object getValueAt(final int rowIndex, final int columnIndex); @Override boolean isCellEditable(final int row, final int column); void addRow(final String absPath, final String attr,
            final String value, final String unit); void deleteRow(final String absPath, final String attr,
            final String value, final String unit, final int selectedRow); void deleteRow(final int selectedRow); MetaDataAndDomainData getRow(final int row); void updateRow(final int row, final String absPath,
            final String attr, final String value, final String unit); MetaDataAndDomainData[] getMetadataToDelete(); MetaDataAndDomainData[] getMetadataToAdd(); void resetOriginalMetaDataAndDomainDataList(); static org.slf4j.Logger log; }### Answer:
@Test public void testGetColumnName() { System.out.println("getColumnName"); int columnIndex = 0; MetadataTableModel instance = new MetadataTableModel(metadataAndDomainData); String expResult = "ID"; String result = instance.getColumnName(columnIndex); assertEquals(expResult, result); }