### Question:
Wrench extends Message { public static Wrench fromMessage(Message m) { return Wrench.fromJsonObject(m.toJsonObject()); } Wrench();  Wrench(Vector3 force, Vector3 torque); Vector3 getForce(); Vector3 getTorque(); @Override Wrench clone(); static Wrench fromJsonString(String jsonString); static Wrench fromMessage(Message m); static Wrench fromJsonObject(JsonObject jsonObject); static final String FIELD_FORCE; static final String FIELD_TORQUE; static final String TYPE; }### Answer:
@Test public void testFromMessage() { Message m = new Message(w1.toString()); Wrench p = Wrench.fromMessage(m); assertEquals(w1.toString(), p.toString()); assertEquals(w1.toJsonObject(), p.toJsonObject()); assertEquals(w1.getMessageType(), p.getMessageType()); assertEquals(w1.getForce(), p.getForce()); assertEquals(w1.getTorque(), p.getTorque()); assertNotSame(w1, p); assertNotSame(w1.toString(), p.toString()); assertNotSame(w1.toJsonObject(), p.toJsonObject()); }