}
@Test(groups = "1s")
public void testGetValueIterator() throws Exception {
setUp();
DisposableValueIterator vit = var.getValueIterator(true);
Assert.assertTrue(vit.hasNext());
Assert.assertEquals(-2, vit.next());
Assert.assertTrue(vit.hasNext());
Assert.assertEquals(-1, vit.next());
Assert.assertTrue(vit.hasNext());
Assert.assertEquals(0, vit.next());
Assert.assertTrue(vit.hasNext());
Assert.assertEquals(1, vit.next());
Assert.assertTrue(vit.hasNext());
Assert.assertEquals(2, vit.next());
Assert.assertFalse(vit.hasNext());
vit.dispose();
vit = var.getValueIterator(false);
Assert.assertTrue(vit.hasPrevious());
Assert.assertEquals(2, vit.previous());
Assert.assertTrue(vit.hasPrevious());
Assert.assertEquals(1, vit.previous());
Assert.assertTrue(vit.hasPrevious());
Assert.assertEquals(0, vit.previous());
Assert.assertTrue(vit.hasPrevious());
Assert.assertEquals(-1, vit.previous());
Assert.assertTrue(vit.hasPrevious());
Assert.assertEquals(-2, vit.previous());
Assert.assertFalse(vit.hasPrevious());
vit.dispose();
}