RankProbabilityDataset extends DefaultCategoryDataset { @Override public List<String> getColumnKeys() { List<String> keys = new ArrayList<String>(); for (Treatment t : d_summary.getTreatments()) { keys.add(t.getId()); } return keys; } RankProbabilityDataset(RankProbabilitySummary rankProbabilitySummary, boolean preferDescription);  RankProbabilityDataset(RankProbabilitySummary rankProbabilitySummary); @SuppressWarnings("rawtypes") @Override int getRowIndex(Comparable key); @SuppressWarnings("rawtypes") @Override int getColumnIndex(Comparable key); @Override String getRowKey(int row); @Override String getColumnKey(int column); @Override List<String> getRowKeys(); @Override List<String> getColumnKeys(); @Override int getRowCount(); @Override int getColumnCount(); @Override Number getValue(int row, int column); @SuppressWarnings("rawtypes") @Override Number getValue(Comparable rowKey, Comparable columnKey);  }
@Test public void testGetColumnKeys() { List<String> expected = Arrays.asList(new String[] { d_ta.getId(), d_tb.getId(), d_tc.getId() }); assertEquals(expected, d_dataSet.getColumnKeys()); }