@Test(expected = SignatureException.class)
public void testInvalidSignatureLength() throws SignatureException {

    byte[] messageHash = new byte[32];
    ECKey.signatureToKey(messageHash, "abcdefg");
    fail("Expecting a SignatureException for invalid signature length");
}