@Test
public void testVisitDenseVector() {

    SparseVectorSummarizer summarizer = summarizer();
    SparseVectorSummarizer addDenseSummarizer =
        (SparseVectorSummarizer) summarizer.visit(new DenseVector(new double[]{-1.0, 2.0, 3.0}));
    Assert.assertEquals(5, addDenseSummarizer.colNum);
    Assert.assertEquals(6, addDenseSummarizer.count);
    Assert.assertEquals(5, addDenseSummarizer.cols.size());
    Assert.assertEquals(9, addDenseSummarizer.cols.get(0).sum, 10e-6);
    Assert.assertEquals(5, addDenseSummarizer.cols.get(0).max, 10e-6);
    Assert.assertEquals(-1, addDenseSummarizer.cols.get(0).min, 10e-6);
    Assert.assertEquals(4, addDenseSummarizer.cols.get(0).numNonZero, 10e-6);
    Assert.assertEquals(11, addDenseSummarizer.cols.get(0).normL1, 10e-6);
    Assert.assertEquals(43, addDenseSummarizer.cols.get(0).squareSum, 10e-6);
}