### Question:
Header extends Message { public static Header fromMessage(Message m) { return Header.fromJsonObject(m.toJsonObject()); } Header();  Header(int seq, edu.wpi.rail.jrosbridge.primitives.Time stamp,
			java.lang.String frameID); int getSeq(); edu.wpi.rail.jrosbridge.primitives.Time getStamp(); java.lang.String getFrameID(); @Override Header clone(); static Header fromJsonString(java.lang.String jsonString); static Header fromMessage(Message m); static Header fromJsonObject(JsonObject jsonObject); static final java.lang.String FIELD_SEQ; static final java.lang.String FIELD_STAMP; static final java.lang.String FIELD_FRAME_ID; static final java.lang.String TYPE; }### Answer:
@Test public void testFromMessage() { Message m = new Message(h1.toString()); Header p = Header.fromMessage(m); assertEquals(h1.toString(), p.toString()); assertEquals(h1.toJsonObject(), p.toJsonObject()); assertEquals(h1.getMessageType(), p.getMessageType()); assertEquals(h1.getSeq(), p.getSeq()); assertEquals(h1.getStamp(), p.getStamp()); assertEquals(h1.getFrameID(), p.getFrameID()); assertNotSame(h1, p); assertNotSame(h1.toString(), p.toString()); assertNotSame(h1.toJsonObject(), p.toJsonObject()); }