### Question:
Geometry { public static Dimension increase(int amount, Dimension dimension) { return new Dimension(dimension.width + amount, dimension.height + amount); }  static Dimension increase(int amount, Dimension dimension); static Point offset(int amount, Point point); static Point offset(Point offset, Point point); static Point opposite(Point point);  }### Answer:
@Test public void increaseDimension() { Dimension dimension = new Dimension(5, 9); int amountToIncrease = 2; Dimension increasedDimension = Geometry.increase(amountToIncrease, dimension); assertEquals(dimension.width + amountToIncrease, increasedDimension.width); assertEquals(dimension.height + amountToIncrease, increasedDimension.height); }
@Test public void increaseDimensionDoesNotChangeOriginalDimension() { Dimension originalDimension = new Dimension(0, 0); Geometry.increase(9, originalDimension); assertEquals(0, originalDimension.width); assertEquals(0, originalDimension.height); }