void () { TreePath path = TreePathUtil.convertArrayToTreePath("one", "two", "three", "four", "five"); Assert.assertSame(path, TreePathUtil.findAncestor(path, ancestor -> ancestor.getPathCount() == 5)); }