assertNotNull(data1);
data1.setPassword("foo123");
userAdminSession.changeUser(admin, data1, true);
Certificate cert = signSession.createCertificate(admin, username, "foo123", keypair.getPublic());
CertificateStatus status = storeSession.getStatus(CertTools.getIssuerDN(cert), CertTools.getSerialNumber(cert));
assertEquals(RevokedCertInfo.NOT_REVOKED, status.revocationReason);
// Revoke the certificate, put on hold
userAdminSession.revokeCert(admin, CertTools.getSerialNumber(cert), CertTools.getIssuerDN(cert), RevokedCertInfo.REVOCATION_REASON_CERTIFICATEHOLD);
status = storeSession.getStatus(CertTools.getIssuerDN(cert), CertTools.getSerialNumber(cert));
assertEquals(RevokedCertInfo.REVOCATION_REASON_CERTIFICATEHOLD, status.revocationReason);