GeometryTracker { Rectangle2D getArea() { if (area == null) { return new Rectangle2D.Double(); } return area.getBounds2D(); } GeometryTracker();   }
@Test public void testGetGeometry_nothingAdded() { final Rectangle2D area = tracker.getArea(); assertNotNull(area); assertTrue(area.isEmpty()); }