assertNotNull(broker.getObjectId(o));
}
public void testProjectionResultWithThisIsCached() {
Broker broker = _factory.newBroker();
Query q =
broker.newQuery(JPQLParser.LANG_JPQL, "select a.name,a FROM " +
CacheObjectAChild1.class.getSimpleName() + " a");
Collection c = (Collection) q.execute();
CacheTestHelper.iterate(c);
CacheTestHelper.assertInCache(this, q, Boolean.TRUE);
c = (Collection) q.execute();
Object[] result = (Object[]) c.iterator().next();
assertEquals(2, result.length);
assertEquals(String.class, result[0].getClass());
assertEquals(CacheObjectAChild1.class, result[1].getClass());
assertNotNull(broker.getObjectId(result[1]));