### Question:
BRBaselineMeasurementTableModel extends AbstractTableModel { public Object getValueAt(int rowIndex, int columnIndex) { OutcomeMeasure om = d_br.getCriteria().get(rowIndex); if (columnIndex == 0) return om.toString(); else return d_br.getBaselineDistribution(om); } BRBaselineMeasurementTableModel(MetaBenefitRiskAnalysis bra); int getColumnCount(); int getRowCount(); @Override boolean isCellEditable(int row, int col); @Override String getColumnName(int index); @Override Class<?> getColumnClass(int index); Object getValueAt(int rowIndex, int columnIndex);  }### Answer:
@Test public void testGetRowNames() { for (int i = 0; i < d_brAnalysis.getCriteria().size(); ++i) { assertEquals(d_brAnalysis.getCriteria().get(i).getName(), d_pm.getValueAt(i, 0)); } }
@Test public void testGetValueAt() { for (int j = 0; j < d_brAnalysis.getCriteria().size(); ++j) { OutcomeMeasure om = d_brAnalysis.getCriteria().get(j); GaussianBase expected = (GaussianBase) d_brAnalysis.getBaselineDistribution(om); GaussianBase actual = (GaussianBase) d_pm.getValueAt(j, 1); assertEquals(expected.getMu(), actual.getMu(), 0.000001); assertEquals(expected.getSigma(), actual.getSigma(), 0.000001); } }