assertThat(digestString, is("677e1b9bca206d6534054348511bf41129744839"));
}
@Test
public void shouldBeAbleToGetInputStreamTwice() throws Exception {
Entry entry = archiveEntries.get("index.html");
ByteArrayOutputStream s1 = new ByteArrayOutputStream();
FileCopyUtils.copy(entry.getInputStream(), s1);
ByteArrayOutputStream s2 = new ByteArrayOutputStream();
FileCopyUtils.copy(entry.getInputStream(), s2);
assertThat(s1.toByteArray().length, is(93));
assertThat(s2.toByteArray().length, is(93));
assertThat(s1.toByteArray(), is(equalTo(s2.toByteArray())));
}