@Test
public void testMemoHashTooLong() {

    byte[] longer = new byte[33];
    Arrays.fill(longer, (byte) 0);
    try {
        Memo.hash(longer);
        fail();
    } catch (MemoTooLongException exception) {
        assertTrue(exception.getMessage().contains("MEMO_HASH can contain 32 bytes at max."));
    }
}