public void test16InvalidCreateCaActions() throws Exception {
log.trace(">test16InvalidCreateCaActions()");
removeTestCA("TESTFAIL"); // We cant be sure this CA was not left over from
// some other failed test
adminGroupSession.init(admin, getTestCAId(), DEFAULT_SUPERADMIN_CN);
SoftCATokenInfo catokeninfo = new SoftCATokenInfo();
catokeninfo.setSignKeySpec("1024");
catokeninfo.setEncKeySpec("1024");
catokeninfo.setSignKeyAlgorithm(AlgorithmConstants.KEYALGORITHM_RSA);
catokeninfo.setEncKeyAlgorithm(AlgorithmConstants.KEYALGORITHM_RSA);
catokeninfo.setSignatureAlgorithm(AlgorithmConstants.SIGALG_SHA1_WITH_RSA);
catokeninfo.setEncryptionAlgorithm(AlgorithmConstants.SIGALG_SHA1_WITH_RSA);
// Create and active OSCP CA Service.
ArrayList<ExtendedCAServiceInfo> extendedcaservices = new ArrayList<ExtendedCAServiceInfo>();
extendedcaservices.add(new OCSPCAServiceInfo(ExtendedCAServiceInfo.STATUS_ACTIVE));
extendedcaservices.add(new XKMSCAServiceInfo(ExtendedCAServiceInfo.STATUS_INACTIVE, "CN=XKMSCertificate, " + "CN=TEST", "", "1024",
AlgorithmConstants.KEYALGORITHM_RSA));