public void testIsApprovedWithSteps() throws Exception {
DummyApprovalRequest nonExecutableRequest = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, 3, false);
approvalSessionRemote.addApprovalRequest(reqadmin, nonExecutableRequest, gc);
int status = approvalSessionRemote.isApproved(reqadmin, nonExecutableRequest.generateApprovalId(), 0);
assertTrue(status == 2);
int approvalId = nonExecutableRequest.generateApprovalId();
Approval approval1 = new Approval("ap1test");
approvalExecutionSessionRemote.approve(admin1, approvalId, approval1, gc);