@Test
public void testConvergenceCheckingWithAnomaliesInData() {

    data.put(666, VectorUtils.of(10, 11).labeled(100000.0));
    LocalDatasetBuilder<Integer, LabeledVector<Double>> datasetBuilder = new LocalDatasetBuilder<>(data, 1);
    ConvergenceChecker<Integer, LabeledVector<Double>> checker = createChecker(
        new MeanAbsValueConvergenceCheckerFactory(0.1), datasetBuilder);
    try (LocalDataset<EmptyContext, FeatureMatrixWithLabelsOnHeapData> dataset = datasetBuilder.build(
        TestUtils.testEnvBuilder(),
        new EmptyContextBuilder<>(), new FeatureMatrixWithLabelsOnHeapDataBuilder<>(vectorizer),
        TestUtils.testEnvBuilder().buildForTrainer())) {
        double onDSError = checker.computeMeanErrorOnDataset(dataset, notConvergedMdl);
        Assert.assertEquals(9090.41, onDSError, 0.01);
    } catch (Exception e) {
        throw new RuntimeException(e);
    }
}