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