@Test
public void testCalculateOverallArea() {
ArrayList<Figure> list1 = new ArrayList<Figure>();
list1.add(new Circle(1));
list1.add(new Square(2));
list1.add(new Hexagon(3));
double overallArea1 = Math.PI + 4 + (3 * Math.sqrt(3) / 2) * 9;
assertEquals(overallArea1, LuxoftUtils.calculateOverallArea(list1), delta);
ArrayList<Figure> list2 = new ArrayList<Figure>();
list1.add(new Square(5));
list1.add(new Hexagon(7));
list1.add(new Circle(9));
list1.add(new Square(8));
double overallArea2 = Math.PI * 25 + (3 * Math.sqrt(3) / 2) * 49 + Math.PI * 81 + 64;
}