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