### Question:
Transform extends Message { public static Transform fromMessage(Message m) { return Transform.fromJsonObject(m.toJsonObject()); } Transform();  Transform(Vector3 translation, Quaternion rotation); Vector3 getTranslation(); Quaternion getRotation(); @Override Transform clone(); static Transform fromJsonString(String jsonString); static Transform fromMessage(Message m); static Transform fromJsonObject(JsonObject jsonObject); static final String FIELD_TRANSLATION; static final String FIELD_ROTATION; static final String TYPE; }### Answer:
@Test public void testFromMessage() { Message m = new Message(t1.toString()); Transform p = Transform.fromMessage(m); assertEquals(t1.toString(), p.toString()); assertEquals(t1.toJsonObject(), p.toJsonObject()); assertEquals(t1.getMessageType(), p.getMessageType()); assertEquals(t1.getTranslation(), p.getTranslation()); assertEquals(t1.getRotation(), p.getRotation()); assertNotSame(t1, p); assertNotSame(t1.toString(), p.toString()); assertNotSame(t1.toJsonObject(), p.toJsonObject()); }