@Test
public void testFromJsonObject() {

	JsonObject jsonObject = Json.createObjectBuilder()
			.add(Duration.FIELD_DATA, t1.getData().toJsonObject()).build();
	Duration data = Duration.fromJsonObject(jsonObject);
	assertEquals(t1.toString(), data.toString());
	assertEquals(t1.toJsonObject(), data.toJsonObject());
	assertEquals(t1.getMessageType(), data.getMessageType());
	assertEquals(t1.getData(), data.getData());
	assertNotSame(t1, data);
	assertNotSame(t1.toString(), data.toString());
	assertNotSame(t1.toJsonObject(), data.toJsonObject());
}