### Question:
BodyConfig { @Override public String toString() { return new StringBuilder(MIN_LENGTH).append(getClass().getSimpleName()) .append(" [gravity=") .append(gravity) .append(", gravityMax=") .append(gravityMax) .append("]") .toString(); } BodyConfig(double gravity, double gravityMax); static BodyConfig imports(Configurer configurer); static void exports(Xml root, Body body); double getGravity(); double getGravityMax(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString(); static final String NODE_BODY; static final String ATT_GRAVITY; static final String ATT_GRAVITY_MAX; }### Answer:
@Test void testToString() { final BodyConfig config = new BodyConfig(1.0, 2.0); assertEquals("BodyConfig [gravity=1.0, gravityMax=2.0]", config.toString()); }