@Test
public void testCopy() throws IOException {

    byte[] input = new byte[5000];
    ByteArrayInputStream in = new ByteArrayInputStream(input);
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    IOHelper.copy(in, out);
    assertTrue(Arrays.equals(input, out.toByteArray()));
}