@Test
public void testSet() throws Exception {

    SparseVector v = v1.clone();
    v.set(2, 2.0);
    v.set(3, 3.0);
    Assert.assertEquals(v.get(2), 2.0, TOL);
    Assert.assertEquals(v.get(3), 3.0, TOL);
}