@Test
public void errorsWhenShapeAlreadyExists() {

    this.thrown.expect(IllegalArgumentException.class);
    final String name = "twice";
    new Figure().add(
        new Shape(Mockito.mock(Renderable.class), name)
    ).add(new Shape(Mockito.mock(Renderable.class), name));
}