### Question:
BRRelativeMeasurementTableModel extends AbstractTableModel { public Object getValueAt(int rowIndex, int columnIndex) { OutcomeMeasure om = d_br.getCriteria().get(rowIndex); if (columnIndex == 0) return om.toString(); TreatmentDefinition a = d_br.getNonBaselineAlternatives().get(columnIndex - 1); return d_br.getRelativeEffectDistribution(om, a); } BRRelativeMeasurementTableModel(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 testGetOutcomeNames() { List<OutcomeMeasure> outcomeMeasures = d_brAnalysis.getCriteria(); for (int j = 0; j < outcomeMeasures.size(); ++j) { assertEquals(outcomeMeasures.get(j).toString(), d_pm.getValueAt(j, 0)); } }
@Test public void testGetValueAt() { List<TreatmentDefinition> drugs = getNonBaselines(); for (int i = 0; i < drugs.size(); ++i) { for (int j=0; j < d_brAnalysis.getCriteria().size(); ++j) { TreatmentDefinition drug = drugs.get(i); OutcomeMeasure om = d_brAnalysis.getCriteria().get(j); GaussianBase expected = (GaussianBase) d_brAnalysis.getRelativeEffectDistribution(om, drug); GaussianBase actual = (GaussianBase) d_pm.getValueAt(j, i + 1); assertEquals(expected.getMu(), actual.getMu(), 0.000001); assertEquals(expected.getSigma(), actual.getSigma(), 0.000001); } } }