@Test
public void testIsParent() throws Exception {

    DMRLocationResolver res = new DMRLocationResolver();
    Assert.assertTrue(res.isParent(DMRNodeLocation.empty(), DMRNodeLocation.of("/one=1")));
    Assert.assertTrue(res.isParent(DMRNodeLocation.of("/"), DMRNodeLocation.of("/one=1")));
    Assert.assertTrue(res.isParent(DMRNodeLocation.of("/one=1"), DMRNodeLocation.of("/one=1/two=2")));
    Assert.assertTrue(res.isParent(DMRNodeLocation.of("/o=1/t=2"), DMRNodeLocation.of("/o=1/t=2/thr=3")));
    Assert.assertFalse(res.isParent(DMRNodeLocation.of("/one=1"), DMRNodeLocation.of("/one=1")));
    Assert.assertFalse(res.isParent(DMRNodeLocation.of("/one=1"), DMRNodeLocation.of("/two=2")));
    // grandchild
    Assert.assertTrue(res.isParent(DMRNodeLocation.of("/one=1"), DMRNodeLocation.of("/one=1/two=2/three=3")));
}