@Test
public void getClusterFastDistanceTest() {

    KMeansPredictModelData predictModelData = new KMeansModelDataConverter().load(modelRows);
    FastDistanceVectorData sample = distance.prepareVectorData(Tuple2.of(VectorUtil.getVector("9 9 9"), null));
    DenseMatrix distanceMatrix = new DenseMatrix(predictModelData.params.k, 1);
    Tuple2<Integer, Double> tuple2 = KMeansUtil.getClosestClusterIndex(sample,
        predictModelData.centroids,
        predictModelData.params.k,
        predictModelData.params.distanceType.getFastDistance(),
        distanceMatrix);
    Assert.assertEquals(tuple2.f0.intValue(), 0);
    Assert.assertEquals(tuple2.f1, 0.173, 0.01);
    double[] distanceMatrixData = distanceMatrix.getData();
    Assert.assertEquals(distanceMatrixData[0], 0.173, 0.01);
    Assert.assertEquals(distanceMatrixData[1], 15.415, 0.01);
}