// Create a good end entity profile (good enough), allowing multiple UPN
// names
endEntityProfileSession.removeEndEntityProfile(admin, "TESTDNOVERRIDE");
EndEntityProfile profile = new EndEntityProfile();
profile.addField(DnComponents.COUNTRY);
profile.addField(DnComponents.COMMONNAME);
profile.setValue(EndEntityProfile.AVAILCAS, 0, Integer.toString(SecConst.ALLCAS));
profile.setValue(EndEntityProfile.AVAILCERTPROFILES, 0, Integer.toString(cprofile));
endEntityProfileSession.addEndEntityProfile(admin, "TESTDNOVERRIDE", profile);
int eeprofile = endEntityProfileSession.getEndEntityProfileId(admin, "TESTDNOVERRIDE");
UserDataVO user = new UserDataVO("foo", "C=SE,CN=dnoverride", rsacaid, null, "foo@anatom.nu", SecConst.USER_ENDUSER, eeprofile, cprofile,