LeafResourceFilter implements ResourceFilter { @Override public boolean accept(Resource path) { return path.isLeaf(); }  @Override boolean accept(Resource path);  }
@Test public void testLeafResourceFilter() { LeafResourceFilter leafResourceFilter = new LeafResourceFilter(); Assert.assertFalse(leafResourceFilter.accept(resource)); }