}
public void testGetReportQueryIteratorByQuery() {
MockControl pbControl = MockControl.createControl(PersistenceBroker.class);
final PersistenceBroker pb = (PersistenceBroker) pbControl.getMock();
Query query = new QueryByCriteria(TestBean.class);
Iterator result = new HashSet().iterator();
pb.getReportQueryIteratorByQuery(query);
pbControl.setReturnValue(result, 1);
pb.close();
pbControl.setReturnValue(true, 1);