@Test
public void shouldServeTheSameBytesForMultipleRangeGreaterThanTheBuffer() throws IOException {

    List<Range> ranges = new ArrayList<>();
    ranges.add(new Range(0, 550));
    ranges.add(new Range(1024, 1623));
    byte[] inputBytesSliced = sliceHelper.getSliceForRanges(inputBytes, ranges);
    streamHelper.serveMultiRangeStream(inputStream, outputStream, ranges, BOUNDARY, CONTENT_TYPE, TOTAL_LENGTH);
    byte[] out = outputStream.toByteArray();
    assertThat(out.length, is(equalTo(inputBytesSliced.length)));
    assertThat(out, equalTo(inputBytesSliced));
}