DataSet data = dc.executeQuery(q);
assertEquals(1, data.getSelectItems().length);
assertEquals("SUM(r.project_id)", data.getSelectItems()[0].toString());
@SuppressWarnings("deprecation")
TableModel tableModel = data.toTableModel();
assertEquals(3, tableModel.getRowCount());
assertEquals(1, tableModel.getColumnCount());
assertEquals(1.0, tableModel.getValueAt(0, 0));
assertEquals(9.0, tableModel.getValueAt(1, 0));
assertEquals(2.0, tableModel.getValueAt(2, 0));