QueryFactory qf = Search.getQueryFactory(remoteCache1);
Query query = qf.from(User.class)
.setProjection("name", "surname")
.having("name").eq("Tom").toBuilder()
.build();
List<Object[]> list = query.list();
assertNotNull(list);
assertEquals(1, list.size());
assertEquals(Object[].class, list.get(0).getClass());
assertEquals("Tom", list.get(0)[0]);
assertEquals("Cat", list.get(0)[1]);