### Question:
SurfaceConfig { @Override public String toString() { return new StringBuilder(MIN_LENGTH).append(getClass().getSimpleName()) .append(" [image=") .append(image) .append(", icon=") .append(icon.orElse(null)) .append("]") .toString(); } SurfaceConfig(String image, String icon); static SurfaceConfig imports(Configurer configurer); static SurfaceConfig imports(Xml root); static Xml exports(SurfaceConfig config); String getImage(); Optional<String> getIcon(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString(); static final String NODE_SURFACE; static final String ATT_IMAGE; static final String ATT_ICON; }### Answer:
@Test void testToString() { final SurfaceConfig config = new SurfaceConfig("image", "icon"); assertEquals("SurfaceConfig [image=image, icon=icon]", config.toString()); }