	public void testRejectECJWKWithUnsupportedCurve()
		throws Exception {

		KeyPair keyPair = createUnsupportedECKeyPair();
		ECPublicKey ecPublicKey = (ECPublicKey)keyPair.getPublic();
		ECPrivateKey ecPrivateKey = (ECPrivateKey)keyPair.getPrivate();

		ECKey ecJWK = new ECKey.Builder(new ECKey.Curve("P-224"), ecPublicKey).privateKey(ecPrivateKey).build();

		try {
			new ECDHEncrypter(ecJWK);
			fail();
		} catch (JOSEException e) {
			// ok
		}

		try {
			new ECDHDecrypter(ecJWK);
			fail();
		} catch (JOSEException e) {
			// ok
		}
	}
The software does not verify, or incorrectly verifies, the cryptographic signature for data.