@Test
    public void shouldIterateAll() {
        final TraverserSet<String> ts = makeStringTraversers();

        final Iterator<Traverser.Admin<String>> itty = ts.iterator();
        final Traverser.Admin<String> a = itty.next();
        assertEquals("a", a.get());
        assertEquals(2, a.bulk());

        final Traverser.Admin<String> b1 = itty.next();
        assertEquals("b1", b1.get());
        assertEquals(1, b1.bulk());

        final Traverser.Admin<String> b2 = itty.next();
        assertEquals("b2", b2.get());
        assertEquals(1, b2.bulk());

        final Traverser.Admin<String> c = itty.next();
        assertEquals("c", c.get());
        assertEquals(1, c.bulk());

        assertThat(itty.hasNext(), is(false));
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/traverser/util/TraverserSetImplementationTest.java