ECDSAVerifier verifier = new ECDSAVerifier(new BigInteger(1, x), new BigInteger(1, y));
assertEquals("X check", new BigInteger(1, x), verifier.getX());
assertEquals("Y check", new BigInteger(1, y), verifier.getY());
boolean verified = jwsObject.verify(verifier);
assertTrue("Verified signature", verified);
assertEquals("State check", JWSObject.State.VERIFIED, jwsObject.getState());
}