// make sure that there's an entry in the cache now
assertEquals(1, cache.size());
// dig into the entry and check its internal state
Compilation comp = (Compilation) cache.values().iterator().next();
assertEquals(NamedEntity.class,
((ParsedJPQL) comp.storeData).getCandidateType());
emf.close();
}