layout1.addComponent(children[3], 0);
assertOrder(layout1, new int[] { 3, 0 });
assertOrder(layout2, new int[] { 2, 1 });
layout2.addComponent(children[0]);
assertOrder(layout1, new int[] { 3 });
assertOrder(layout2, new int[] { 2, 1, 0 });
layout1.addComponentAsFirst(children[1]);
assertOrder(layout1, new int[] { 1, 3 });