@Test
public void testFromJsonObject() {

	JsonObject jsonObject = Json
			.createObjectBuilder()
			.add(Vector3Stamped.FIELD_HEADER, v1.getHeader().toJsonObject())
			.add(Vector3Stamped.FIELD_VECTOR,
					v1.getVector3().toJsonObject()).build();
	Vector3Stamped p = Vector3Stamped.fromJsonObject(jsonObject);
	assertEquals(v1.toString(), p.toString());
	assertEquals(v1.toJsonObject(), p.toJsonObject());
	assertEquals(v1.getMessageType(), p.getMessageType());
	assertEquals(v1.getHeader(), p.getHeader());
	assertEquals(v1.getVector3(), p.getVector3());
	assertNotSame(v1, p);
	assertNotSame(v1.toString(), p.toString());
	assertNotSame(v1.toJsonObject(), p.toJsonObject());
}