@Test
    public void shouldIterateAnArray() {
        final Iterator<String> itty = new DoubleIterator<>("test1", "test2");
        assertEquals("test1", itty.next());
        assertEquals("test2", itty.next());

        assertFalse(itty.hasNext());
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/util/iterator/DoubleIteratorTest.java