### Question:
JSR310LocalTimeType extends AbstractJSR310DateTimeType<LocalTime> { @Override public void setValue(PreparedStatement st, int startIndex, LocalTime value) throws SQLException { st.setTime(startIndex, new Time(value.get(ChronoField.MILLI_OF_DAY)), utc()); } JSR310LocalTimeType();  JSR310LocalTimeType(int type); @Override String getLiteral(LocalTime value); @Override Class<LocalTime> getReturnedClass(); @Nullable @Override LocalTime getValue(ResultSet rs, int startIndex); @Override void setValue(PreparedStatement st, int startIndex, LocalTime value);  }### Answer:
@Test public void set() throws SQLException { LocalTime value = LocalTime.now(); Time time = new Time(value.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); }
@Test public void jodaSet() throws SQLException { LocalTime value = LocalTime.now(); Time time = new Time(value.get(ChronoField.MILLI_OF_DAY)); PreparedStatement stmt = EasyMock.createNiceMock(PreparedStatement.class); stmt.setTime(1, time, UTC); EasyMock.replay(stmt); new LocalTimeType().setValue(stmt, 1, toJoda(value)); EasyMock.verify(stmt); }