broker.commitTransaction();
broker.clearCache();
Article cached =
(Article) broker.serviceObjectCache().lookup(tmpOID);
assertNull("After flushing Object should be not in cache", cached);
Article article = (Article) broker.getObjectByQuery(new QueryByIdentity(tmpOID));
cached = (Article) broker.serviceObjectCache().lookup(tmpOID);
assertNotNull("now object should be found in cache", cached);
assertEquals("should be the same Identity", new Identity(cached, broker), new Identity(article,broker));
assertEquals("objects should have identical values", cached.toString(), article.toString());
}