@Test
public void testScore() {

    Metric<Integer> scoreCalculator = new Accuracy<>();
    LabelPairCursor<Integer> cursor = new TestLabelPairCursor<>(
        Arrays.asList(1, 1, 1, 1),
        Arrays.asList(1, 1, 0, 1)
    );
    double score = scoreCalculator.score(cursor.iterator());
    assertEquals(0.75, score, 1e-12);
}