### Question:
Collision extends NameableAbstract { @Override public String toString() { return new StringBuilder(MIN_LENGTH).append(getClass().getSimpleName()) .append(" [name=") .append(getName()) .append(", offsetX=") .append(offsetX) .append(", offsetY=") .append(offsetY) .append(", width=") .append(width) .append(", height=") .append(height) .append(", mirror=") .append(mirror) .append("]") .toString(); } Collision(String name, int offsetX, int offsetY, int width, int height, boolean mirror); int getOffsetX(); int getOffsetY(); int getWidth(); int getHeight(); boolean hasMirror(); @Override String toString(); static final Collision AUTOMATIC; }### Answer:
@Test void testToString() { final Collision collision = new Collision("void", 0, 2, 3, 4, true); assertEquals("Collision [name=void, offsetX=0, offsetY=2, width=3, height=4, mirror=true]", collision.toString()); }