assertTrue(Arrays.equals(md5Expected, md5)); is.reset(); byte[] ba = IOUtils.toByteArray(is); byte[] md5_2 = is.getMd5Digest(); is.mark(-1); is.read(new byte[10]); is.reset(); byte[] ba = IOUtils.toByteArray(is); if (DEBUG) is.mark(-1); is.read(new byte[10]); is.reset(); byte[] ba = IOUtils.toByteArray(is); if (DEBUG) is.mark(-1); is.read(new byte[10]); is.reset(); is.read(new byte[10]); is.mark(-1); is.read(); is.reset(); byte[] ba = IOUtils.toByteArray(is); if (DEBUG)