requests.add(tokenCertReqWS);
HardTokenDataWS hardTokenDataWS = new HardTokenDataWS();
hardTokenDataWS.setLabel(HardTokenConstants.LABEL_PROJECTCARD);
hardTokenDataWS.setTokenType(HardTokenConstants.TOKENTYPE_SWEDISHEID);
hardTokenDataWS.setHardTokenSN(serialNumber);
PinDataWS basicPinDataWS = new PinDataWS();
basicPinDataWS.setType(HardTokenConstants.PINTYPE_BASIC);
basicPinDataWS.setInitialPIN("1234");
basicPinDataWS.setPUK("12345678");
PinDataWS signaturePinDataWS = new PinDataWS();
signaturePinDataWS.setType(HardTokenConstants.PINTYPE_SIGNATURE);
signaturePinDataWS.setInitialPIN("5678");
signaturePinDataWS.setPUK("23456789");
hardTokenDataWS.getPinDatas().add(basicPinDataWS);
hardTokenDataWS.getPinDatas().add(signaturePinDataWS);
List<TokenCertificateResponseWS> responses = ejbcaraws.genTokenCertificates(tokenUser1, requests, hardTokenDataWS, true, false);
assertTrue(responses.size() == 2);
certificateProfileSession.removeCertificateProfile(intAdmin, "WSTESTPROFILE");