@Test
public void testFromJsonObject() {

	JsonObject jsonObject = Json.createObjectBuilder()
			.add(GoalID.FIELD_STAMP, g1.getStamp().toJsonObject())
			.add(GoalID.FIELD_ID, g1.getID()).build();
	GoalID p = GoalID.fromJsonObject(jsonObject);
	assertEquals(g1.toString(), p.toString());
	assertEquals(g1.toJsonObject(), p.toJsonObject());
	assertEquals(g1.getMessageType(), p.getMessageType());
	assertEquals(g1.getStamp(), p.getStamp());
	assertEquals(g1.getID(), p.getID());
	assertNotSame(g1, p);
	assertNotSame(g1.toString(), p.toString());
	assertNotSame(g1.toJsonObject(), p.toJsonObject());
}