@Test
public void testTwoDifferentAndBalanced() {

    Metric<Double> scoreCalculator = new ROCAUC();
    LabelPairCursor<Double> cursor = new TestLabelPairCursor<>(
        Arrays.asList(1.0, 1.0, 0.0, 0.0),
        Arrays.asList(1.0, 0.0, 0.0, 1.0)
    );
    double score = scoreCalculator.score(cursor.iterator());
    assertEquals(0.5, score, 1e-12);
}