@Test
public void testUpdatigModel() {

    Vectorizer<Integer, double[], Integer, Double> vectorizer = new DoubleArrayVectorizer<Integer>().labeled(Vectorizer.LabelCoordinate.LAST);
    GaussianNaiveBayesModel model = trainer.fit(
        new LocalDatasetBuilder<>(singleLabeldata1, parts),
        vectorizer
    );
    GaussianNaiveBayesModel updatedModel = trainer.updateModel(model,
        new LocalDatasetBuilder<>(singleLabeldata2, parts),
        vectorizer
    );
    Assert.assertEquals(3. / data.size(), updatedModel.getClassProbabilities()[0], PRECISION);
    Assert.assertEquals(2. / data.size(), updatedModel.getClassProbabilities()[1], PRECISION);
}