public static String md5Hex(String string) {
        return compute(string, DigestObjectPools.MD5);
    }
@Test
    public void shouldComputeForAGivenStreamUsingMD5() {
        byte[] testData = new byte[1024 * 1024];
        new Random().nextBytes(testData);
        assertEquals(DigestUtils.md5Hex(testData), md5Hex(new ByteArrayInputStream(testData)));
    }