### Question:
PointStamped extends Message { public static PointStamped fromJsonString(String jsonString) { return PointStamped.fromMessage(new Message(jsonString)); } PointStamped();  PointStamped(Header header, Point point); Header getHeader(); Point getPoint(); @Override PointStamped clone(); static PointStamped fromJsonString(String jsonString); static PointStamped fromMessage(Message m); static PointStamped fromJsonObject(JsonObject jsonObject); static final String FIELD_HEADER; static final String FIELD_POINT; static final String TYPE; }### Answer:
@Test public void testFromJsonString() { PointStamped p = PointStamped.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.getPoint(), p.getPoint()); assertNotSame(p1, p); assertNotSame(p1.toString(), p.toString()); assertNotSame(p1.toJsonObject(), p.toJsonObject()); }