@When("iterated next")
    public void iteratedNext() {
        if ((null == traversal) && (error != null)) {
            return; // Error probably occurred during traversal construction. Skip to prevent NPE.
        }

        try {
            result = traversal.next();
        } catch (Exception ex) {
            error = ex;
        }
    }
Some implementations of {@link VertexProperty} are not {@code Serializable} and may lead to test failures when passed as
parameters. One such instance is {@code HadoopVertexProperty}. This method detaches vertex properties as tests
should never require implementation-specific elements.
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/features/StepDefinition.java