### Question:
JSR310OffsetTimeType extends AbstractJSR310DateTimeType<OffsetTime> { @Nullable @Override public OffsetTime getValue(ResultSet rs, int startIndex) throws SQLException { Time time = rs.getTime(startIndex, utc()); return time != null ? OffsetTime.ofInstant(Instant.ofEpochMilli(time.getTime()), ZoneOffset.UTC) : null; } JSR310OffsetTimeType();  JSR310OffsetTimeType(int type); @Override String getLiteral(OffsetTime value); @Override Class<OffsetTime> getReturnedClass(); @Nullable @Override OffsetTime getValue(ResultSet rs, int startIndex); @Override void setValue(PreparedStatement st, int startIndex, OffsetTime value);  }### Answer:
@Test public void get() throws SQLException { ResultSet resultSet = EasyMock.createNiceMock(ResultSet.class); EasyMock.expect(resultSet.getTime(1, UTC)).andReturn(new Time(UTC.getTimeInMillis())); EasyMock.replay(resultSet); OffsetTime result = type.getValue(resultSet, 1); EasyMock.verify(resultSet); assertNotNull(result); assertTrue(result.getSecond() == 0); }