final PreparedStatement ps = connection.prepareStatement("SELECT lt, gt, zone from tmp.test_time");
final ResultSet rs = ps.executeQuery();
final TypeMapper<?> mapper = TypeMapperFactory.createTypeMapper(ClassWithDateTime.class);
int i = 0;
while (rs.next()) {
final ClassWithDateTime result = (ClassWithDateTime) mapper.mapRow(rs, i++);
Assert.assertNotNull(result);
Assert.assertEquals(result.getDateWithTimezone(), result.getDateWithoutTimezone());
}
}