a = (CacheObjectA) em1.find(CacheObjectA.class, oid);
assertTrue(cache.contains(oidwithclass));
try {
PCData data = cache.get(oidwithclass);
ClassMetaData meta =
((OpenJPAEntityManagerFactorySPI) OpenJPAPersistence
.cast(factory)).getConfiguration()
.getMetaDataRepositoryInstance().getMetaData(a.getClass(),
null, false);
FieldMetaData fmd = meta.getField("date");
d = (Date) data.getData(fmd.getIndex());
Broker broker = JPAFacadeHelper.toBroker(em1);
OpenJPAStateManager sm = broker.getStateManager(a);
assertTrue(sm == ((ProxyDate) a.getDate()).getOwner());
assertEquals(Date.class, d.getClass());
}