### Question:
Rectangle implements Area { public void set(double x, double y, double w, double h) { this.x = x; this.y = y; width = w; height = h; } 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 testSet() { final Rectangle rectangle = new Rectangle(); rectangle.set(1.0, 2.0, 3.6, 4.6); assertEquals(1.0, rectangle.getX()); assertEquals(2.0, rectangle.getY()); assertEquals(3, rectangle.getWidth()); assertEquals(4, rectangle.getHeight()); assertEquals(3.6, rectangle.getWidthReal()); assertEquals(4.6, rectangle.getHeightReal()); assertEquals(1.0, rectangle.getMinX()); assertEquals(2.0, rectangle.getMinY()); assertEquals(4.6, rectangle.getMaxX()); assertEquals(6.6, rectangle.getMaxY()); }