@Override
    public void verify(byte[] data, byte[] signature, MessageDigest digest) {
        verify(data, new EcSignature(signature), digest);
    }
@Test
    public void shouldThrowValidationExceptionIfSignatureIsInvalid() {
        thrown.expect(VerificationException.class);
        thrown.expectMessage("Invalid signature");
        verify(D.add(BigInteger.ONE), Q, "SHA-256");
    }