/** Test constructor (Object=null) */
 public void testConstructor_badconverterObject() throws Throwable {
   try {
     ConverterManager.getInstance().addInstantConverter(MockZeroNullIntegerConverter.INSTANCE);
     Instant test = new Instant(new Integer(0));
     assertEquals(ISOChronology.getInstanceUTC(), test.getChronology());
     assertEquals(0L, test.getMillis());
   } finally {
     ConverterManager.getInstance().removeInstantConverter(MockZeroNullIntegerConverter.INSTANCE);
   }
 }
 /** Test now () */
 public void test_now() throws Throwable {
   Instant test = Instant.now();
   assertEquals(ISOChronology.getInstanceUTC(), test.getChronology());
   assertEquals(TEST_TIME_NOW, test.getMillis());
 }
 /** Test constructor (Object) */
 public void testConstructor_Object() throws Throwable {
   Date date = new Date(TEST_TIME1);
   Instant test = new Instant(date);
   assertEquals(ISOChronology.getInstanceUTC(), test.getChronology());
   assertEquals(TEST_TIME1, test.getMillis());
 }
 /** Test constructor (Object=null) */
 public void testConstructor_nullObject() throws Throwable {
   Instant test = new Instant((Object) null);
   assertEquals(ISOChronology.getInstanceUTC(), test.getChronology());
   assertEquals(TEST_TIME_NOW, test.getMillis());
 }
 /** Test constructor (long) */
 public void testConstructor_long2() throws Throwable {
   Instant test = new Instant(TEST_TIME2);
   assertEquals(ISOChronology.getInstanceUTC(), test.getChronology());
   assertEquals(TEST_TIME2, test.getMillis());
 }