@Test
void testSerializeEpochTimestampAsIsoDateTime() {

    long timestamp = 0;
    long lastTimestampToCheck = LocalDateTime.now()
            .plus(1, ChronoUnit.YEARS)
            .toInstant(ZoneOffset.UTC)
            .toEpochMilli();
    // interval is approximately a hour but not exactly
    // to get different values for the minutes, seconds and milliseconds
    long interval = 997 * 61 * 61;
    for (; timestamp <= lastTimestampToCheck; timestamp += interval) {
        assertDateFormattingIsCorrect(Instant.ofEpochMilli(timestamp));
    }
    StringBuilder builder = new StringBuilder();
    dateSerializer.serializeEpochTimestampAsIsoDateTime(builder, 1565093352375L);
    System.out.println(builder);
    builder.setLength(0);
    dateSerializer.serializeEpochTimestampAsIsoDateTime(builder, 1565093352379L);
    System.out.println(builder);
    builder.setLength(0);
    dateSerializer.serializeEpochTimestampAsIsoDateTime(builder, 1565100520199L);
    System.out.println(builder);
}