public void testAccessArticleTwice()
{
resetStmtCount();
myPB.clearCache();
myPB.beginTransaction();
Identity id = new Identity(null, InterfaceArticle.class, new Object[] {new Integer(200)});
logger.info(id.toString());
assertNull(id.getObjectsRealClass());
myPB.getObjectByIdentity(id);
assertEquals(CdArticle.class, id.getObjectsRealClass());
assertStmtCount("access one cd", 1, 3); // 3 tables: Artikel, BOOKS, CDS
resetStmtCount();
myPB.getObjectByIdentity(id);
assertStmtCount("access one cd again", 1); // lookup again, but exploit objectsRealClass
myPB.commitTransaction();