assertTrue("Saving Turkish Hard Token Profile failed", (turprofile2 instanceof TurkishEIDProfile));
assertTrue("Saving Turkish Hard Token Profile failed", (turprofile2 != null));
    public void test01AddHardTokenProfile() throws Exception {        log.debug(">test01AddHardTokenProfile()");        boolean ret = false;        try {            SwedishEIDProfile profile = new SwedishEIDProfile();            EnhancedEIDProfile profile2 = new EnhancedEIDProfile();            TurkishEIDProfile turprofile = new TurkishEIDProfile();            String svgdata = createSVGData();            profile.setPINEnvelopeData(svgdata);            profile2.setIsKeyRecoverable(EnhancedEIDProfile.CERTUSAGE_ENC, true);            cacheAdmin.addHardTokenProfile(admin, "SWETEST", profile);            cacheAdmin.addHardTokenProfile(admin, "ENHTEST", profile2);            cacheAdmin.addHardTokenProfile(admin, "TURTEST", turprofile);            SwedishEIDProfile profile3 = (SwedishEIDProfile) cacheAdmin.getHardTokenProfile(admin, "SWETEST");            EnhancedEIDProfile profile4 = (EnhancedEIDProfile) cacheAdmin.getHardTokenProfile(admin, "ENHTEST");            TurkishEIDProfile turprofile2 = (TurkishEIDProfile) cacheAdmin.getHardTokenProfile(admin, "TURTEST");            String svgdata2 = profile3.getPINEnvelopeData();            assertTrue("Saving SVG Data failed", svgdata.equals(svgdata2));            assertTrue("Saving Hard Token Profile failed", profile4.getIsKeyRecoverable(EnhancedEIDProfile.CERTUSAGE_ENC));            assertTrue("Saving Turkish Hard Token Profile failed", (turprofile2 instanceof TurkishEIDProfile));            ret = true;        } catch (HardTokenProfileExistsException pee) {        }        assertTrue("Creating Hard Token Profile failed", ret);        log.debug("<test01AddHardTokenProfile()");    }