"SELECT 'str' as str, ROW(1,2,'c')::tmp.simple_type as obj");
final ResultSet rs = ps.executeQuery();
final TypeMapper<?> mapper = TypeMapperFactory.createTypeMapper(ClassWithObject.class);
int i = 0;
while (rs.next()) {
final ClassWithObject result = (ClassWithObject) mapper.mapRow(rs, i++);
Assert.assertNotNull(result.getPrimitives());
Assert.assertEquals(1, result.getPrimitives().getI());
Assert.assertEquals(2, result.getPrimitives().getL());
Assert.assertEquals('c', result.getPrimitives().getC());
Assert.assertEquals("str", result.getStr());
}
}