PointHandle extends AbstractHandle { @Override public void updateLocation() { setLocation(getFigure().getLocation()); } PointHandle(PointFigure figure, FigureStyle handleStyle);  PointHandle(PointFigure figure, FigureStyle handleStyle, Shape shape); @Override PointFigure getFigure(); @Override void updateLocation(); @Override void move(double dx, double dy);  }
@Test public void testUpdateLocation() throws Exception { figure.setLocation(8.1, 0.4); assertEquals(new Point2D.Double(8.1, 0.4), handle.getLocation()); assertEquals(new Point2D.Double(8.1, 0.4), figure.getLocation()); }