### Question:
JSR310ZonedDateTimeType extends AbstractJSR310DateTimeType<ZonedDateTime> { @Nullable @Override public ZonedDateTime getValue(ResultSet rs, int startIndex) throws SQLException { Timestamp ts = rs.getTimestamp(startIndex, utc()); return ts != null ? ZonedDateTime.ofInstant(ts.toInstant(), ZoneOffset.UTC) : null; } JSR310ZonedDateTimeType();  JSR310ZonedDateTimeType(int type); @Override String getLiteral(ZonedDateTime value); @Override Class<ZonedDateTime> getReturnedClass(); @Nullable @Override ZonedDateTime getValue(ResultSet rs, int startIndex); @Override void setValue(PreparedStatement st, int startIndex, ZonedDateTime value);  }### Answer:
@Test public void get() throws SQLException { ResultSet resultSet = EasyMock.createNiceMock(ResultSet.class); EasyMock.expect(resultSet.getTimestamp(1, UTC)).andReturn(Timestamp.from(UTC.toInstant())); EasyMock.replay(resultSet); ZonedDateTime result = type.getValue(resultSet, 1); EasyMock.verify(resultSet); assertNotNull(result); assertTrue(result.toEpochSecond() == 0); }