}
@Test
public void test_copyMyNodesToTop_3() {
NodeListMergeModel model = new NodeListMergeModel();
Way myWay = my.addWay(1, 1);
myWay.addNode(my.addNode(2));
myWay.addNode(my.addNode(3));
Way theirWay = their.addWay(1);
model.populate(myWay, theirWay, null);
List<Node> mergedNodes = inspectNodeList(model, "Merged");
mergedNodes.add(new Node(1));
model.copyMyToTop(new int[]{1}); // copy node 3
mergedNodes = inspectNodeList(model, "Merged");
assertEquals(2, mergedNodes.size());
assertEquals(3, mergedNodes.get(0).getId()); // my node 3 at position 0
assertEquals(1, mergedNodes.get(1).getId()); // already merged node 1 at position 1