assertEquals(1, lib.getShapes().size());
}
@Test
public void testShapesRemoveClear() {
MockShape shape0 = new MockShape();
MockShape shape1 = new MockShape();
MockShape shape2 = new MockShape();
MockShape shape3 = new MockShape();
lib.addShape(shape0).addShape(shape1).addShape(shape2).addShape(shape3);
assertEquals(4, lib.getShapes().size());
lib.removeShape(shape0);
assertEquals(3, lib.getShapes().size());
lib.removeShape(shape0);
assertEquals(3, lib.getShapes().size());
lib.removeShape(new MockShape());
assertEquals(3, lib.getShapes().size());
lib.removeShape(null);
assertEquals(3, lib.getShapes().size());
lib.removeShape(shape1).removeShape(shape2);