}
public void testProjection1() throws Exception {
QueryFactory qf = Search.getSearchManager(cache).getQueryFactory();
Query q = qf.from(User.class)
.setProjection("id", "name").build();
assertEquals(4, q.getResultSize());
List<Object[]> list = q.list();
assertEquals(4, list.size());
for (Object[] u : list) {
assertNotNull(u[1]);
assertTrue(u[0] instanceof Integer);
}