public void test16CertNotMarked() throws Exception {
keyRecoverySession.unmarkUser(administrator, username2);
userAdminSession.setUserStatus(administrator, username2, 40);
userAdminSession.setClearTextPassword(administrator, username2, "RerecoverPassword");
RecoverRequestType recoverRequestType = xKMSObjectFactory.createRecoverRequestType();
recoverRequestType.setId("704");
recoverRequestType.getRespondWith().add(XKMSConstants.RESPONDWITH_X509CHAIN);
recoverRequestType.getRespondWith().add(XKMSConstants.RESPONDWITH_PRIVATEKEY);
X509DataType x509DataType = sigFactory.createX509DataType();
x509DataType.getX509IssuerSerialOrX509SKIOrX509SubjectName().add(sigFactory.createX509DataTypeX509Certificate(cert2.getEncoded()));
KeyInfoType keyInfoType = sigFactory.createKeyInfoType();
keyInfoType.getContent().add(sigFactory.createX509Data(x509DataType));
KeyBindingType keyBindingType = xKMSObjectFactory.createKeyBindingType();
keyBindingType.setKeyInfo(keyInfoType);
keyBindingType.setId("100123123422");
recoverRequestType.setRecoverKeyBinding(keyBindingType);
AuthenticationType authenticationType = xKMSObjectFactory.createAuthenticationType();
NotBoundAuthenticationType notBoundAuthenticationType = xKMSObjectFactory.createNotBoundAuthenticationType();
notBoundAuthenticationType.setProtocol("NOTUSED");
notBoundAuthenticationType.setValue("RerecoverPassword".getBytes());
authenticationType.setNotBoundAuthentication(notBoundAuthenticationType);
recoverRequestType.setAuthentication(authenticationType);
RecoverResultType recoverResultType = xKMSInvoker.recover(recoverRequestType, null, null, null, keyBindingType.getId());
assertTrue(recoverResultType.getResultMajor().equals(XKMSConstants.RESULTMAJOR_SENDER));
assertTrue(recoverResultType.getResultMinor().equals(XKMSConstants.RESULTMINOR_REFUSED));