### Question:
EntityTableModel extends AbstractTableModel { @Override public String getColumnName(int columnIndex) { String name = d_props.get(columnIndex); for (int i = 0; i < name.length(); ++i) { if (Character.isUpperCase(name.charAt(i))) { name = name.substring(0,i) + " " + name.substring(i); ++i; } } return name.substring(0, 1).toUpperCase() + name.substring(1); } EntityTableModel(Class<? extends Entity> entityType, ObservableList<? extends Entity> entities, List<String> properties, PresentationModelFactory pmf); int getColumnCount(); int getRowCount(); Object getValueAt(int row, int column); @Override String getColumnName(int columnIndex); @Override Class<?> getColumnClass(int columnIndex);  }### Answer:
@Test public void testGetColumnNames() { assertEquals("Name", d_tableModel.getColumnName(0)); assertEquals("Atc Code", d_tableModel.getColumnName(1)); }