void (TreePath path) { Assert.assertNotNull(path); Assert.assertEquals("0", path.getLastPathComponent()); Assert.assertNotNull(path.getParentPath()); Assert.assertEquals("1", path.getParentPath().getLastPathComponent()); Assert.assertNotNull(path.getParentPath().getParentPath()); Assert.assertEquals("2", path.getParentPath().getParentPath().getLastPathComponent()); Assert.assertNull(path.getParentPath().getParentPath().getParentPath()); }