public static void initKalkanProvider() {
        if (!isAddedKalkan) {
            synchronized (SecurityProviderInitializer.class) {
                if (!isAddedKalkan) {
                    logger.info("Trying to add KalkanProvider to Security providers..");
                    Security.addProvider(new KalkanProvider());
                    KncaXS.loadXMLSecurity();
                    logger.info("Successfully added KalkanProvider to Security providers..");
                    isAddedKalkan = true;
                }
            }
        }
    }
@Test
    public void initKalkanProvider_AddsKalkanProviderOnce() {
        SecurityProviderInitializer.initKalkanProvider();

        logger.info("Checking if KalkanProvider is added to Security providers..");
        assertSecurityProvidersContains(KalkanProvider.class);

        logger.info("Initialized again to check if KalkanProvider is added twice..");
        SecurityProviderInitializer.initKalkanProvider();
        
        assertSecurityProvidersContainsExactlyOne(KalkanProvider.class);
    }