@Test
public void testIsParent() throws Exception {

  final File a = new File(path("one", "two", "three"));
  final File b = new File(path("one", "two"));
  final File c = new File(path("one", "..", "one", ".", "two", "."));
  final File d = new File(path("two", "three"));
  assertTrue(isParent(b, a));
  assertTrue(isParent(c, a));
  assertFalse(isParent(d, a));
  assertFalse(isParent(d, c));
  assertFalse(isParent(a, b));
  assertFalse(isParent(a, a));
}