// Exhibits defect #7668
layout.addComponent(children[2], 1);
assertOrder(layout, new int[] { 0, 2, 1, 3 });
// Move C from #1 to #4 (which becomes #3 when #1 is erased)
layout.addComponent(children[2], 4);
assertOrder(layout, new int[] { 0, 1, 3, 2 });
// Keep everything in place
layout.addComponent(children[1], 1);
assertOrder(layout, new int[] { 0, 1, 3, 2 });