### Question:
Lease { public static String formatExpiry(long expiry) { if (expiry == Long.MAX_VALUE) { return "eschaton"; } else if (expiry == 0) { return "epoch"; } else { return new SimpleDateFormat("MMM dd HH:mm:ss.SSS zzz yyyy").format(new Date(expiry)); } } Lease(UUID tenant, long expiry); static Lease vacant(); boolean isVacant(); boolean isHeldBy(UUID candidate); boolean isHeldByAndCurrent(UUID candidate); UUID getTenant(); long getExpiry(); @Override int hashCode(); @Override boolean equals(Object obj); boolean isCurrent(); @Override String toString(); static String formatExpiry(long expiry); byte[] pack(); static Lease unpack(byte[] bytes); static Lease forever(UUID tenant); static Lease expired(UUID tenant);  }### Answer:
@Test public void testFormatExpiry() { assertEquals("eschaton", Lease.formatExpiry(Long.MAX_VALUE)); assertEquals("epoch", Lease.formatExpiry(0)); assertNotNull(Lease.formatExpiry(1)); }