}
private void checkOrderEquals(NodeImpl src, NodeImpl dest) throws RepositoryException {
List<NodeData> srcChildren = new ArrayList<NodeData>(dataManager.getChildNodesData((NodeData) src.getData()));
List<NodeData> destChildren = new ArrayList<NodeData>(dataManager.getChildNodesData((NodeData) dest.getData()));
Collections.sort(srcChildren, new NodeDataOrderComparator());
Collections.sort(destChildren, new NodeDataOrderComparator());
for (int i = 0; i < srcChildren.size(); i++) {
assertTrue(srcChildren.get(i).getQPath().getName().getAsString().equals(srcChildren.get(i).getQPath().getName().getAsString()));
}
}