@Test
public void testFromJsonObject() {

	JsonObject jsonObject = Json.createObjectBuilder()
			.add(Wrench.FIELD_FORCE, w1.getForce().toJsonObject())
			.add(Wrench.FIELD_TORQUE, w1.getTorque().toJsonObject())
			.build();
	Wrench p = Wrench.fromJsonObject(jsonObject);
	assertEquals(w1.toString(), p.toString());
	assertEquals(w1.toJsonObject(), p.toJsonObject());
	assertEquals(w1.getMessageType(), p.getMessageType());
	assertEquals(w1.getForce(), p.getForce());
	assertEquals(w1.getTorque(), p.getTorque());
	assertNotSame(w1, p);
	assertNotSame(w1.toString(), p.toString());
	assertNotSame(w1.toJsonObject(), p.toJsonObject());
}