/**
* Tests the bring to front method.
*/
public void testBringToFront() {
MyCompositeNode child1 = new MyCompositeNode();
MyCompositeNode child2 = new MyCompositeNode();
MyCompositeNode child3 = new MyCompositeNode();
diagram.addChild(child1);
diagram.addChild(child2);
diagram.addChild(child3);
diagram.bringChildToFront(child1);
assertEquals("child1 should now be at index 2",