@Test
public void testGetMatrix() {

  ConfusionMatrix confusionMatrix = fillConfusionMatrix(VALUES, LABELS, DEFAULT_LABEL);
  Matrix m = confusionMatrix.getMatrix();
  Map<String, Integer> rowLabels = m.getRowLabelBindings();
  assertEquals(confusionMatrix.getLabels().size(), m.numCols());
  assertTrue(rowLabels.keySet().contains(LABELS[0]));
  assertTrue(rowLabels.keySet().contains(LABELS[1]));
  assertTrue(rowLabels.keySet().contains(DEFAULT_LABEL));
  assertEquals(2, confusionMatrix.getCorrect(LABELS[0]));
  assertEquals(20, confusionMatrix.getCorrect(LABELS[1]));
  assertEquals(0, confusionMatrix.getCorrect(DEFAULT_LABEL));
}