@Test
public void shouldReturnLengthForASingeRange() {

    Range range = new Range(333L, 1234L);
    String boundary = "BBBOOUUNNNDDAARRYY";
    String contentType = "application/pdf";
    long totalLength = 12345L;
    long computedLength = rangePartHeaderSerializer
            .getPartHeadersLength(Collections.singletonList(range), boundary, contentType, totalLength);
    assertThat(computedLength, is(0L));
}