DummyApprovalRequest ar = new DummyApprovalRequest(testcert,null,1,2, false);
DummyApprovalRequest ar = new DummyApprovalRequest(new Admin(testcert),null,1,2, false);
	public void testWriteExternal() throws Exception {		X509Certificate testcert = CertTools.getCertfromByteArray(testcertenc);		DummyApprovalRequest ar = new DummyApprovalRequest(testcert,null,1,2, false);		    	ByteArrayOutputStream baos = new ByteArrayOutputStream();    	ObjectOutputStream oos = new ObjectOutputStream(baos);    	oos.writeObject(ar);    	oos.flush();    	String result = new String(Base64.encode(baos.toByteArray(),false));    	    	ApprovalRequest readrequest = ApprovalDataUtil.getApprovalRequest(result);    	assertTrue(readrequest.getApprovalType() == ApprovalDataVO.APPROVALTYPE_DUMMY);    	assertTrue(readrequest.getApprovalRequestType() == ApprovalRequest.REQUESTTYPE_SIMPLE);    	assertTrue(readrequest.getRequestSignature() == null);    	assertTrue(readrequest.getRequestAdminCert().getSerialNumber().equals(testcert.getSerialNumber()));    	assertTrue(readrequest.getCAId() == 1);    	assertTrue(readrequest.getEndEntityProfileId() == 2);    	assertTrue(!readrequest.isExecutable());			}