@Test
public void testLongConstructor() {

	assertEquals(0, t2.secs);
	assertEquals(1024, t2.nsecs);
	assertEquals(0, t2.getSecs());
	assertEquals(1024, t2.getNsecs());
	assertFalse(t2.isZero());
	assertEquals(1.024e-6, t2.toSec(), 0);
	assertEquals(1024l, t2.toNSec());
	assertTrue(t2.isValid());
	assertEquals("{\"secs\":0,\"nsecs\":1024}", t2.toString());
	assertEquals(2, t2.toJsonObject().size());
	assertEquals(0, t2.toJsonObject().getInt(TimeBase.FIELD_SECS));
	assertEquals(1024, t2.toJsonObject().getInt(TimeBase.FIELD_NSECS));
	assertEquals(Time.TYPE, t2.getPrimitiveType());
}