Collection result = (Collection) query.execute();
assertEquals(1, result.size());
Book b = (Book) result.iterator().next();
IndirectionHandler handler = ProxyHelper.getIndirectionHandler(b.getPublisher());
assertNotNull(handler);
assertFalse(handler.alreadyMaterialized());
handler.addListener(
new MaterializationListener()
{
public void beforeMaterialization(IndirectionHandler handler, Identity oid)
{