	@Test
	public void testBringToFront() {


		Set<DrawingObject> set;

		addAllRectangles();

		set = tree.getDrawingObjects(true);
		assertTrue(set.toArray()[0] == rectangle1);
		assertTrue(set.toArray()[3] == rectangle4);

		tree.bringToFront(rectangle1);
		set = tree.getDrawingObjects(true);
		assertTrue(set.toArray()[3] == rectangle1);

		tree.bringToFront(rectangle2);
		set = tree.getDrawingObjects(true);
		assertTrue(set.toArray()[3] == rectangle2);

		tree.bringToFront(rectangle3);
		set = tree.getDrawingObjects(true);
		assertTrue(set.toArray()[3] == rectangle3);

		tree.bringToFront(rectangle4);
		set = tree.getDrawingObjects(true);
		assertTrue(set.toArray()[3] == rectangle4);

	}