### Question:
QuaternionStamped extends Message { public static QuaternionStamped fromJsonString(String jsonString) { return QuaternionStamped.fromMessage(new Message(jsonString)); } QuaternionStamped();  QuaternionStamped(Header header, Quaternion quaternion); Header getHeader(); Quaternion getQuaternion(); @Override QuaternionStamped clone(); static QuaternionStamped fromJsonString(String jsonString); static QuaternionStamped fromMessage(Message m); static QuaternionStamped fromJsonObject(JsonObject jsonObject); static final String FIELD_HEADER; static final String FIELD_QUATERNION; static final String TYPE; }### Answer:
@Test public void testFromJsonString() { QuaternionStamped p = QuaternionStamped.fromJsonString(p1.toString()); assertEquals(p1.toString(), p.toString()); assertEquals(p1.toJsonObject(), p.toJsonObject()); assertEquals(p1.getMessageType(), p.getMessageType()); assertEquals(p1.getHeader(), p.getHeader()); assertEquals(p1.getQuaternion(), p.getQuaternion()); assertNotSame(p1, p); assertNotSame(p1.toString(), p.toString()); assertNotSame(p1.toJsonObject(), p.toJsonObject()); }