@Test
    public void testUnsupportedAlgorithm() {
        val config =
            new ECEncryptionConfiguration(buildKeyPair(), JWEAlgorithm.RSA_OAEP_256, EncryptionMethod.A128CBC_HS256);
        TestsHelper.expectException(config::init, TechnicalException.class,
            "Only Elliptic-curve algorithms are supported with the appropriate encryption method");
    }
Tests {@link ECEncryptionConfiguration}.

@author Jerome Leleu
@since 1.9.2
pac4j-jwt/src/test/java/org/pac4j/jwt/config/encryption/ECEncryptionConfigurationTests.java