### Question:
JSR310OffsetDateTimeType extends AbstractJSR310DateTimeType<OffsetDateTime> { @Nullable @Override public OffsetDateTime getValue(ResultSet rs, int startIndex) throws SQLException { Timestamp timestamp = rs.getTimestamp(startIndex, utc()); return timestamp != null ? OffsetDateTime.ofInstant(timestamp.toInstant(), ZoneOffset.UTC) : null; } JSR310OffsetDateTimeType();  JSR310OffsetDateTimeType(int type); @Override String getLiteral(OffsetDateTime value); @Override Class<OffsetDateTime> getReturnedClass(); @Nullable @Override OffsetDateTime getValue(ResultSet rs, int startIndex); @Override void setValue(PreparedStatement st, int startIndex, OffsetDateTime 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); OffsetDateTime result = type.getValue(resultSet, 1); EasyMock.verify(resultSet); assertNotNull(result); assertTrue(result.toEpochSecond() == 0); }