@Test(expected = IllegalArgumentException.class)
public void testSignIncorrectInputSize() {

    ECKey key = new ECKey();
    String message = "The quick brown fox jumps over the lazy dog.";
    ECDSASignature sig = key.doSign(message.getBytes());
    fail("Expecting an IllegalArgumentException for a non 32-byte input");
}