### Question:
Resolution { @Override public String toString() { return new StringBuilder(MIN_LENGHT).append(getClass().getSimpleName()) .append(" [width=") .append(width) .append(", height=") .append(height) .append(", rate=") .append(rate) .append("]") .toString(); } Resolution(int width, int height, int rate); Resolution get2x(); Resolution get3x(); Resolution get4x(); Resolution getScaled(double factorX, double factorY); int getWidth(); int getHeight(); int getRate(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString();  }### Answer:
@Test void testToString() { assertEquals("Resolution [width=320, height=240, rate=60]", new Resolution(320, 240, 60).toString()); }