### Question:
BodyConfig { @Override public int hashCode() { final int prime = 31; int result = 1; long temp; temp = Double.doubleToLongBits(gravity); result = prime * result + (int) (temp ^ temp >>> 32); temp = Double.doubleToLongBits(gravityMax); result = prime * result + (int) (temp ^ temp >>> 32); return result; } 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 testHashCode() { final BodyConfig config = new BodyConfig(1.0, 2.0); assertHashEquals(config, config); assertHashEquals(config, new BodyConfig(1.0, 2.0)); assertHashNotEquals(config, new Object()); assertHashNotEquals(config, new BodyConfig(2.0, 2.0)); assertHashNotEquals(config, new BodyConfig(2.0, 1.0)); }