@Test
  public void testValidRange() throws Exception {
    testByteRangeCreationOffsetRange(0, 0, true);
    testByteRangeCreationFromStartOffset(0, true);
    testByteRangeCreationFromStartOffset(15, true);
    testByteRangeCreationLastNBytes(20, true);
    testByteRangeCreationLastNBytes(0, true);
    testByteRangeCreationOffsetRange(22, 44, true);
    testByteRangeCreationFromStartOffset(Long.MAX_VALUE, true);
  }
Test that we can create valid ranges and read their offsets correctly.
@throws Exception
ambry-api/src/test/java/com/github/ambry/router/ByteRangeTest.java