@Test public void testIsDescendantOf() throws Exception { assertTrue(LocationPredicates.isDescendantOf(loc).apply(grandchildLoc)); assertTrue(LocationPredicates.isDescendantOf(loc).apply(childLoc)); assertFalse(LocationPredicates.isDescendantOf(loc).apply(loc)); assertFalse(LocationPredicates.isDescendantOf(childLoc).apply(loc)); }