void () { JBTreeTraverser<Integer> t = numTraverser(); JBIterable<Integer> it = t.regard(new FilteredTraverserBase.EdgeFilter<>() { @Override public boolean value(Integer integer) { return (integer / edgeSource) % 2 == 0; } }).traverse(); assertEquals(Arrays.asList(1, 2, 5, 8, 10, 4, 11), it.toList()); assertEquals(Arrays.asList(1, 2, 5, 8, 10, 4, 11), it.toList()); }