LeaderElector { protected static ZonedDateTime now() { return ZonedDateTime.now(ZoneOffset.UTC); } LeaderElector(C kubernetesClient, LeaderElectionConfig leaderElectionConfig); void run();  }
@Test void nowShouldReturnZonedTimeInUTC() { final Instant now = Instant.now(); final ZonedDateTime result = now(); assertEquals(ZoneOffset.UTC, result.getZone()); final long delta = result.toEpochSecond() - now.getEpochSecond(); assertTrue(delta <= 1); assertTrue(delta >= 0); }