@Test
public void testFromJsonObject() {

	JsonObject jsonObject = Json.createObjectBuilder()
			.add(Twist.FIELD_LINEAR, t1.getLinear().toJsonObject())
			.add(Twist.FIELD_ANGULAR, t1.getAngular().toJsonObject())
			.build();
	Twist p = Twist.fromJsonObject(jsonObject);
	assertEquals(t1.toString(), p.toString());
	assertEquals(t1.toJsonObject(), p.toJsonObject());
	assertEquals(t1.getMessageType(), p.getMessageType());
	assertEquals(t1.getLinear(), p.getLinear());
	assertEquals(t1.getAngular(), p.getAngular());
	assertNotSame(t1, p);
	assertNotSame(t1.toString(), p.toString());
	assertNotSame(t1.toJsonObject(), p.toJsonObject());
}