/** * Tests the ToString of LeapSecond. */ @Test public final void testToString() { LeapSecond leapSecond = new LeapSecond(2451545.0, 100.0); String expected = StringHelper.format("2451545:0 UTC ({0}), 100", new GregorianDate(new JulianDate(2451545.0, TimeStandard.COORDINATED_UNIVERSAL_TIME))); Assert.assertEquals(expected, leapSecond.toString()); }