FileTimeValueTranscoder extends AbstractStringValueTranscoder<ZonedDateTime> { @Override public ZonedDateTime decodeStringValue(final String value) { final Instant i = Instant.ofEpochMilli(Long.parseLong(value) / ONE_HUNDRED_NANOSECOND_INTERVAL - ERA_OFFSET); return ZonedDateTime.ofInstant(i, ZoneId.of("Z")); }  @Override ZonedDateTime decodeStringValue(final String value); @Override String encodeStringValue(final ZonedDateTime value); @Override Class<ZonedDateTime> getType();  }
@Test(groups = "transcode", dataProvider = "times") public void decodeStringValue(final ZonedDateTime date, final String fileTime) throws Exception { Assert.assertEquals(transcoder.decodeStringValue(fileTime), date); }