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