ex, Vertex&gt;) this.sqlgGraph.traversal().V().hasLabel(&quot;A&quot;).has(&quot;name&quot;, P.within(&quot;2&quot;, &quot;3&quot;, &quot;4&quot;)).has(&quot;name&quot;, P.within(&quot;4&quot;, &quot;5&quot;, &quot;6&quot;));</b>
<b class="fc">&nbsp;        Assert.assertEquals(2, traversal.getSteps().size());</b>
<b class="fc">&nbsp;        Assert.assertEquals(a4, traversal.next());</b>
<b class="fc">&nbsp;        Assert.assertEquals(1, traversal.getSteps().size());</b>
&nbsp;    }
&nbsp;
&nbsp;    @Test
&n