@Test
    public void testMissingPublicKey() {
        val config = new ECSignatureConfiguration();
        if (TestsHelper.getJdkVersion() > 17) {
            config.setAlgorithm(JWSAlgorithm.ES384);
        }
        config.setPrivateKey((ECPrivateKey) buildKeyPair().getPrivate());
        val signedJWT = config.sign(buildClaims());
        TestsHelper.expectException(() -> config.verify(signedJWT), TechnicalException.class, "publicKey cannot be null");
    }
Tests {@link ECSignatureConfiguration}.

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