@Test
public void testDefaultBehaviourForScoreAll() {

    RegressionMetrics scoreCalculator = new RegressionMetrics();
    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)
    );
    RegressionMetricValues metricValues = scoreCalculator.scoreAll(cursor.iterator());
    assertEquals(1.0, metricValues.rss(), 1e-12);
}