@Test
public void testValues() throws Exception {

  for (int attr = 0; attr < classifierData.getDataset().nbAttributes(); attr++) {
    double[] values = classifierData.values(attr);
    // each value of the attribute should appear exactly one time in values
    for (int index = 0; index < DATA_SIZE; index++) {
      assertEquals(1, count(values, classifierData.get(index).get(attr)));
    }
  }
  for (int attr = 0; attr < regressionData.getDataset().nbAttributes(); attr++) {
    double[] values = regressionData.values(attr);
    // each value of the attribute should appear exactly one time in values
    for (int index = 0; index < DATA_SIZE; index++) {
      assertEquals(1, count(values, regressionData.get(index).get(attr)));
    }
  }
}