&nbsp;        List&lt;Predicate&lt;Path&gt;&gt; pathsToAssert = Arrays.asList(</b>
<b class="pc">&nbsp;                p -&gt; p.size() == 3 &amp;&amp; p.get(0).equals(a1) &amp;&amp; p.get(1).equals(e1) &amp;&amp; p.get(2).equals(b1)</b>
&nbsp;        );
<b class="fc">&nbsp;        for (Predicate&lt;Path&gt; pathPredicate : pathsToAssert) {</b>
<b class="fc">&nbsp;            Optional&lt;Path&gt; path = paths.stream().filter(pathPredicate).findAny();</b>
<b class="fc">&nbsp;            assertTrue(path.isPre