@Test
public void buffersGivenInputStreamInMemoryWhenLengthDoesNotExceedThreshold() throws Exception {

    InputStream inputStream = new ByteArrayInputStream(testContent);
    InputStream bufferedStream = IOHelper.bufferStream(inputStream, testContent.length + 1);
    assertTrue(bufferedStream instanceof ByteArrayInputStream);
    assertArrayEquals(testContent, ByteStreams.toByteArray(bufferedStream));
}