private void assertRangeResolutionFailure(ByteRange byteRange, long totalSize) {
    try {
      byteRange.toResolvedByteRange(totalSize);
      fail("Should have failed to resolve range: " + byteRange + " with total size: " + totalSize);
    } catch (IllegalArgumentException expected) {
    }
  }
Test and assert that a {@link ByteRange} fails validation with a specified total blob size.
@param byteRange the {@link ByteRange} to resolve with a total blob size.
@param totalSize the total size of a blob.
ambry-api/src/test/java/com/github/ambry/router/ByteRangeTest.java