Map<String, Integer> bindings = iterable.getModel().getLabelBindings();
assertNotNull(bindings);
assertEquals(5, bindings.size());
Iterator<Vector> iter = iterable.iterator();
assertTrue(iter.hasNext());
Vector next = iter.next();
assertNotNull(next);
assertTrue("Wrong instanceof", next instanceof DenseVector);
assertEquals(1.0, next.get(0));
assertEquals(2.0, next.get(1));
assertTrue(iter.hasNext());
next = iter.next();
assertNotNull(next);
assertTrue("Wrong instanceof", next instanceof DenseVector);
assertEquals(2.0, next.get(0));
assertEquals(3.0, next.get(1));
assertTrue(iter.hasNext());
next = iter.next();
assertNotNull(next);
assertTrue("Wrong instanceof", next instanceof SparseVector);
assertEquals(5.0, next.get(0));
assertEquals(23.0, next.get(1));
assertFalse(iter.hasNext());
}