@Test
public void testApplyDivisionByZero() {

    double[][] data = new double[][]{{1.}, {1.}, {1.}, {1.}};
    MinMaxScalerPreprocessor<Integer, double[]> preprocessor = new MinMaxScalerPreprocessor<>(
        new double[] {1.},
        new double[] {1.},
        new DoubleArrayVectorizer<>(0)
    );
    double[][] standardData = new double[][]{{0.}, {0.}, {0.}, {0.}};
    for (int i = 0; i < data.length; i++)
        assertArrayEquals(standardData[i], preprocessor.apply(i, data[i]).features().asArray(), 1e-8);
}