@Test
public void testFromMessage() {

	Message m = new Message(g1.toString());
	GoalID p = GoalID.fromMessage(m);
	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());
}