RectangleArea implements Serializable { public RectangleArea applyScale(double scale) { double scaledX = Math.round(x * scale); double scaledY = Math.round(y * scale); double scaledWidth = Math.round(width * scale); double scaledHeight = Math.round(height * scale); return new RectangleArea(scaledX, scaledY, scaledWidth, scaledHeight); } @JsonCreator  RectangleArea(@JsonProperty("x") double x, @JsonProperty("y") double y, @JsonProperty("width") double width,
			@JsonProperty("height") double height);  RectangleArea(Rectangle rectangle); double getX(); double getY(); double getWidth(); double getHeight(); RectangleArea floor(); RectangleArea round(); RectangleArea ceil(); RectangleArea move(double deltaX, double deltaY); RectangleArea applyScale(double scale); Rectangle toRectangle(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testApplyScale() throws Exception { RectangleArea rectangle = new RectangleArea(10.5d, 20.5d, 30.5d, 40.5d); RectangleArea result = rectangle.applyScale(10d); assertThat(result, is(new RectangleArea(105d, 205d, 305d, 405d))); }