PointSymbol implements Symbol { @Override public Rectangle2D getBounds() { return new Rectangle2D.Double(-r, -r, 2.0 * r, 2.0 * r); } private  PointSymbol(double size, int type); static PointSymbol createPlus(double size); static PointSymbol createCross(double size); static PointSymbol createStar(double size); @Override void draw(Rendering rendering, FigureStyle style); @Override boolean isHitBy(double x, double y); @Override Rectangle2D getBounds();  }
@Test public void testGetBounds() throws Exception { PointSymbol pointSymbol = PointSymbol.createPlus(10.0); assertEquals(new Rectangle2D.Double(-5, -5, 10, 10), pointSymbol.getBounds()); }