aphTraversal&lt;Vertex, Map&lt;String, Object&gt;&gt; traversal = (DefaultGraphTraversal&lt;Vertex, Map&lt;String, Object&gt;&gt;)sqlgGraph.traversal()</b>
<b class="fc">&nbsp;                .V(a1).as(&quot;a&quot;).local(__.out().as(&quot;b&quot;)).select(&quot;a&quot;, &quot;b&quot;);</b>
<b class="fc">&nbsp;        Assert.assertEquals(3, traversal.getSteps().size());</b>
<b class="fc">&nbsp;        List&lt;Map&lt;String, Object&gt;&gt; t = traversal.toList();</b>
<b class="fc">&nbsp;        Assert.asser