am().anyMatch(p -&gt; p.size() == 1 &amp;&amp; p.get(0).equals(a3)));</b>
<b class="pc">&nbsp;        paths.remove(paths.stream().filter(p -&gt; p.size() == 1 &amp;&amp; p.get(0).equals(a3)).findAny().get());</b>
<b class="fc">&nbsp;        Assert.assertTrue(paths.isEmpty());</b>
&nbsp;    }
&nbsp;
&nbsp;}
</code>
</pre>
</div>

<script type="text/javascript">
(function() {
    var msie = false, msie9 = false;
    /*@cc_on
      msie = true;
      @if (@_jscript_version >= 9)
        msie9 = true;
      @en