### Question:
Rectangle implements Area { public void translate(double vx, double vy) { x += vx; y += vy; } Rectangle();  Rectangle(double x, double y, double width, double height); void translate(double vx, double vy); void rotate(double angle); void set(double x, double y, double w, double h); double getMinX(); double getMinY(); double getMaxX(); double getMaxY(); @Override boolean intersects(Area area); @Override boolean contains(Area area); @Override boolean contains(double x, double y); @Override double getWidthReal(); @Override double getHeightReal(); @Override double getX(); @Override double getY(); @Override int getWidth(); @Override int getHeight(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString();  }### Answer:
@Test void testTranslate() { final Rectangle rectangle = new Rectangle(1.0, 1.0, 5.0, 5.0); rectangle.translate(1.0, 2.0); assertEquals(2.0, rectangle.getX()); assertEquals(3.0, rectangle.getY()); assertEquals(2.0, rectangle.getMinX()); assertEquals(3.0, rectangle.getMinY()); assertEquals(7.0, rectangle.getMaxX()); assertEquals(8.0, rectangle.getMaxY()); assertEquals(5.0, rectangle.getWidthReal()); assertEquals(5.0, rectangle.getHeightReal()); }