@Test(expected = UnknownClassLabelException.class)
public void testFailWithIncorrectClassLabelsInMetrics() {

    Metric scoreCalculator = new BinaryClassificationMetrics()
        .withPositiveClsLb(42);
    LabelPairCursor<Double> cursor = new TestLabelPairCursor<>(
        Arrays.asList(1.0, 1.0, 1.0, 1.0),
        Arrays.asList(1.0, 1.0, 0.0, 1.0)
    );
    scoreCalculator.score(cursor.iterator());
}