DummyApprovalRequest nonExecutableRequest = new DummyApprovalRequest(reqadmincert,null,caid,SecConst.EMPTY_ENDENTITYPROFILE,false);
DummyApprovalRequest nonExecutableRequest = new DummyApprovalRequest(reqadmin,null,caid,SecConst.EMPTY_ENDENTITYPROFILE,false);
	public void testFindNonExpiredApprovalRequest() throws Exception {		DummyApprovalRequest nonExecutableRequest = new DummyApprovalRequest(reqadmincert,null,caid,SecConst.EMPTY_ENDENTITYPROFILE,false);				pub.addApprovalRequest(admin1, nonExecutableRequest);				// Then after one of them have expired		Thread.sleep(5000);				pub.addApprovalRequest(admin1, nonExecutableRequest);				ApprovalDataVO result = pub.findNonExpiredApprovalRequest(admin1, nonExecutableRequest.generateApprovalId());		assertTrue(result.getStatus() == ApprovalDataVO.STATUS_WAITINGFORAPPROVAL);				Collection all = pub.findApprovalDataVO(admin1, nonExecutableRequest.generateApprovalId());		Iterator iter = all.iterator();		while(iter.hasNext()){			ApprovalDataVO next = (ApprovalDataVO) iter.next();			pub.removeApprovalRequest(admin1, next.getId());		}			}