@Test
public void testFromJsonString() {

	Duration d = Duration.fromJsonString(d1.toString());
	assertEquals(d1.toString(), d.toString());
	assertEquals(d1.toJsonObject(), d.toJsonObject());
	assertEquals(d1.getPrimitiveType(), d.getPrimitiveType());
	assertEquals(d1.getSecs(), d.getSecs());
	assertEquals(d1.getNsecs(), d.getNsecs());
	assertEquals(d1.toSec(), d.toSec(), 0);
	assertEquals(d1.toNSec(), d.toNSec());
	assertNotSame(d1, d);
	assertNotSame(d1.toString(), d.toString());
	assertNotSame(d1.toJsonObject(), d.toJsonObject());
}