@Test
public void testFromJsonObject() {

	JsonObject jsonObject = Json.createObjectBuilder()
			.add(WrenchStamped.FIELD_HEADER, w1.getHeader().toJsonObject())
			.add(WrenchStamped.FIELD_WRENCH, w1.getWrench().toJsonObject())
			.build();
	WrenchStamped p = WrenchStamped.fromJsonObject(jsonObject);
	assertEquals(w1.toString(), p.toString());
	assertEquals(w1.toJsonObject(), p.toJsonObject());
	assertEquals(w1.getMessageType(), p.getMessageType());
	assertEquals(w1.getHeader(), p.getHeader());
	assertEquals(w1.getWrench(), p.getWrench());
	assertNotSame(w1, p);
	assertNotSame(w1.toString(), p.toString());
	assertNotSame(w1.toJsonObject(), p.toJsonObject());
}