### Question:
JSR310OffsetTimeType extends AbstractJSR310DateTimeType<OffsetTime> { @Override public void setValue(PreparedStatement st, int startIndex, OffsetTime value) throws SQLException { OffsetTime normalized = value.withOffsetSameInstant(ZoneOffset.UTC); st.setTime(startIndex, new Time(normalized.get(ChronoField.MILLI_OF_DAY)), utc()); } 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 set() throws SQLException { OffsetTime value = OffsetTime.now(); OffsetTime normalized = value.withOffsetSameInstant(ZoneOffset.UTC); Time time = new Time(normalized.get(ChronoField.MILLI_OF_DAY)); PreparedStatement stmt = EasyMock.createNiceMock(PreparedStatement.class); stmt.setTime(1, time, UTC); EasyMock.replay(stmt); type.setValue(stmt, 1, value); EasyMock.verify(stmt); }