/* ----------------------------------------------------------------------------- */
/* copyMyNodesAfterCurrent */
/* ----------------------------------------------------------------------------- */
@Test
public void test_copyMyNodesAfterCurrent_1() {
NodeListMergeModel model = new NodeListMergeModel();
Way myWay = my.addWay(1, 1);
myWay.addNode(my.addNode(1));
myWay.addNode(my.addNode(2));
Way theirWay = their.addWay(1);
model.populate(myWay, theirWay, null);
List<Node> mergedNodes = inspectNodeList(model, "Merged");
mergedNodes.add(new Node(10));
mergedNodes.add(new Node(11));
mergedNodes.add(new Node(12));
model.copyMyAfterCurrent(new int[]{0}, 1);
assertEquals(4, mergedNodes.size());
assertEquals(10, mergedNodes.get(0).getId()); // already merged node
assertEquals(11, mergedNodes.get(1).getId()); // already merged node
assertEquals(1, mergedNodes.get(2).getId()); // copied node 1 at position 2