public ByteRange toResolvedByteRange(long totalSize) {
    return toResolvedByteRange(totalSize, false);
  }
Given the total size of a blob, generate a new {@link ByteRange} of type {@link ByteRangeType#OFFSET_RANGE} with
defined start and end offsets that are verified to be within the supplied total blob size.
@param totalSize the total size of the blob that this range corresponds to.
@return the {@link ByteRange} with start and end offsets
@throws IllegalArgumentException if the byte range starts past the end of the blob.
ambry-api/src/main/java/com/github/ambry/router/ByteRange.java