@Override
    public SSLContext getIdentitySslContext() {
        return sslContext;
    }
@Test
    void constructs_ssl_context_with_pem_trust_store() throws IOException {
        File keyFile = File.createTempFile("junit", null, tempDirectory);
        KeyPair keypair = KeyUtils.generateKeypair(KeyAlgorithm.RSA);
        createPrivateKeyFile(keyFile, keypair);

        X509Certificate certificate = createCertificate(keypair);
        File certificateFile = File.createTempFile("junit", null, tempDirectory);
        createCertificateFile(certificate, certificateFile);

        File trustStoreFile = File.createTempFile("junit", null, tempDirectory);
        createPemTrustStoreFile(certificate, trustStoreFile);

        SiaIdentityProvider provider =
                new SiaIdentityProvider(
                        new AthenzService("domain", "service-name"),
                        keyFile.toPath(),
                        certificateFile.toPath(),
                        trustStoreFile.toPath());

        assertNotNull(provider.getIdentitySslContext());
    }