@Test
public void testCompareTo() throws Exception {

    Vector.VectorBuilder vectorBuilder = new Vector.VectorBuilder(ctor, 6);
    vectorBuilder.add(.0f);
    vectorBuilder.add(.2f);
    vectorBuilder.add(.4f);
    vectorBuilder.add(.6f);
    vectorBuilder.add(.8f);
    vectorBuilder.add(1.f);
    Vector one = vectorBuilder.build();
    vectorBuilder = new Vector.VectorBuilder(ctor, 6);
    vectorBuilder
            .add(.0f)
            .add(.2f)
            .add(.4f)
            .add(.6f)
            .add(.8f)
            .add(1.f);
    Vector two = vectorBuilder.build();
    double v = one.compareTo(two);
    Assert.assertEquals("These vectors are 100% likely to be the same.", 1.0, v, 0.0001);
}