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