@Test
public void copy() throws Exception {

    String testString = Strings.repeat(TEST_STR, 10000);
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    StreamHelper.copy(new ByteArrayInputStream(testString.getBytes()), baos);
    assertEquals(testString, new String(baos.toByteArray()));
}