factoryCtrl.expectAndReturn(factory.getSession(), session);
session.logout();
final List list = new ArrayList();
MockControl queryCtrl = MockControl.createControl(Query.class);
Query query = (Query) queryCtrl.getMock();
managerCtrl.expectAndReturn(manager.getObjects(query), list);
managerCtrl.replay();
factoryCtrl.replay();