public boolean equalPathsTo(NodeRelativePath nodeRelativePath2) {
	    return Arrays.equals(beginPath, nodeRelativePath2.beginPath) && Arrays.equals(endPath, nodeRelativePath2.endPath);
    }
@Test
	public void equalPaths(){
		final NodeModel parent = root();
		final NodeModel node1 = new NodeModel("node1", map);
		parent.insert(node1);
		final NodeModel node2 = new NodeModel("node2", map);
		parent.insert(node2);
		final NodeRelativePath nodeRelativePath1 = new NodeRelativePath(node1, node2);
		final NodeRelativePath nodeRelativePath2 = new NodeRelativePath(node1, node2);
		assertTrue(nodeRelativePath1.equalPathsTo(nodeRelativePath2));
	}