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