@Override
@Test
public void testSetHasHatchings() {
IRectangle rec1 = ShapeFactory.createRectangle();
IRectangle rec2 = ShapeFactory.createRectangle();
shape.addShape(rec1);
shape.addShape(rec2);
assertFalse(shape.hasHatchings());
rec2.setFillingStyle(FillingStyle.HLINES);
assertTrue(shape.hasHatchings());
rec1.setFillingStyle(FillingStyle.HLINES);
rec2.setFillingStyle(FillingStyle.GRAD);
assertTrue(shape.hasHatchings());
rec1.setFillingStyle(FillingStyle.HLINES);
rec2.setFillingStyle(FillingStyle.VLINES);
assertTrue(shape.hasHatchings());
rec1.setFillingStyle(FillingStyle.PLAIN);
rec2.setFillingStyle(FillingStyle.GRAD);
assertFalse(shape.hasHatchings());
}