### Question:
Dimension implements Serializable { @Override public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("width="); stringBuilder.append(this.width); stringBuilder.append(", height="); stringBuilder.append(this.height); return stringBuilder.toString(); } Dimension(int width, int height); @Override boolean equals(Object obj); Point getCenter(); @Override int hashCode(); @Override String toString(); final int height; final int width; }### Answer:
@Test public void toStringTest() { Dimension dimension = new Dimension(1, 2); Assert.assertEquals(POINT_TO_STRING, dimension.toString()); }