### Question:
HashUtil { public static byte[] ripemd160(byte[] data) { Digest digest = new RIPEMD160Digest(); if (data != null) { byte[] resBuf = new byte[digest.getDigestSize()]; digest.update(data, 0, data.length); digest.doFinal(resBuf, 0); return resBuf; } throw new NullPointerException("Can't hash a NULL value"); }  static byte[] sha3(byte[] data); static byte[] sha3Twice(byte[] data); static byte[] sha3(byte[] data1, byte[] data2); static byte[] sha3(byte[] data, int start, int length); static byte[] sha3Twice(byte[] data, int start, int length); static byte[] ripemd160(byte[] data); static byte[] sha3Hash160(byte[] data); static byte[] randomHash32(); static final byte[] EMPTY_BYTE_ARRAY; static final byte[] EMPTY_DATA_HASH; static final byte[] EMPTY_HASH; }### Answer:
@Test public void ripemd160() { byte[] messageR160= HashUtil.ripemd160(message.getBytes()); Assert.assertEquals(Hex.toHexString(messageR160),messageR160Str); }