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