public static String formatTimestamp(final Timestamp timestamp) {
    return DateTimeFormatter
        .ofPattern(KsqlConstants.DATE_TIME_PATTERN)
        .withZone(ZoneId.of("Z"))
        .format(timestamp.toInstant());
  }
@Test
  public void shouldFormatTimestamp() {
    assertThat(SqlTimeTypes.formatTimestamp(new Timestamp(1552816800000L)), is("2019-03-17T10:00:00.000"));
  }