### Question:
GoalStatusArray extends Message { public static GoalStatusArray fromJsonString(String jsonString) { return GoalStatusArray.fromMessage(new Message(jsonString)); } GoalStatusArray();  GoalStatusArray(Header header, GoalStatus[] statusList); int size(); GoalStatus get(int index); GoalStatus[] getStatusList(); Header getHeader(); @Override GoalStatusArray clone(); static GoalStatusArray fromJsonString(String jsonString); static GoalStatusArray fromMessage(Message m); static GoalStatusArray fromJsonObject(JsonObject jsonObject); static final String FIELD_HEADER; static final String FIELD_STATUS_LIST; static final String TYPE; }### Answer:
@Test public void testFromJsonString() { GoalStatusArray p = GoalStatusArray.fromJsonString(g1.toString()); assertEquals(g1.toString(), p.toString()); assertEquals(g1.toJsonObject(), p.toJsonObject()); assertEquals(g1.getMessageType(), p.getMessageType()); assertEquals(g1.getHeader(), p.getHeader()); assertTrue(Arrays.deepEquals(g1.getStatusList(), p.getStatusList())); assertNotSame(g1, p); assertNotSame(g1.toString(), p.toString()); assertNotSame(g1.toJsonObject(), p.toJsonObject()); assertEquals(g1.size(), p.size()); }