@Test
void testEventTimeToString_Double_MaxSupportedTime() {

    // Max supported time is constrained due to use of DoubleMath.roundToLong()
    // Use long here to avoid precision errors; value will be converted to Double at point of use
    long maxSupportedTime = 9223372036854775295L;
    // Years greater than 9999 are prefixed by "+", since the year format is "yyyy" - see SignStyle.EXCEEDS_PAD
    assertEquals("+292278994-08-17 07:12:54.784", EventUtil.eventTimeToString(Double.valueOf(maxSupportedTime)));
    assertThrows(IllegalArgumentException.class, () -> EventUtil.eventTimeToString(Double.valueOf(maxSupportedTime + 1)));
}