/*
 * Copyright (c) eHealth
 */
package be.fgov.ehealth.technicalconnector.jca;

import be.ehealth.technicalconnector.service.sts.security.impl.BeIDCredential;
import be.ehealth.technicalconnector.session.Session;
import be.fgov.ehealth.technicalconnector.distributedkeys.DistributedKeyStoreRegistry;
import be.fgov.ehealth.technicalconnector.jca.impl.CredentialProxy;
import org.junit.Assert;
import org.junit.Test;


public class DistributedKeyStoreRegistryTest {

    @Test
    public void getKeyStore() throws Exception {
        DistributedKeyStoreRegistry registry = DistributedKeyStoreRegistry.getInstance();
        registry.createKeyStore(Session.IDENTIFICATION_KEYSTORE, new CredentialProxy(BeIDCredential.getInstance("beid-test", BeIDCredential.EID_AUTH_ALIAS)));
        Assert.assertFalse(registry.getDistributedKeyStores().isEmpty());
    }

}
