### Question:
StudyMeasurementTableModel extends AbstractTableModel { public int getColumnCount() { return d_study.getArms().size() + 2 + (d_hasOverallColumn ? 1 : 0); } StudyMeasurementTableModel(Study study, PresentationModelFactory pmf, Class<? extends Variable> type, boolean hasOverallColumn); @Override Class<?> getColumnClass(int columnIndex); int getColumnCount(); int getRowCount(); @Override boolean isCellEditable(int row, int col); @Override String getColumnName(int col); Object getValueAt(int rowIndex, int columnIndex);  }### Answer:
@Test public void testGetColumnCount() { assertEquals(d_standardStudy.getArms().size() + 2, d_model.getColumnCount()); }
@Test public void testGetPopcharColumnCount() { assertEquals(d_popcharStudy.getArms().size() + 3, d_popcharTablemodel.getColumnCount()); }