@Test
  public void testInvalidGetStoreKeysInByteRange() {
    List<Pair<StoreKey, Long>> keysAndContentSizes = createKeysAndContentSizes(60, 1, 1000000, 100);
    CompositeBlobInfo compositeBlobInfo = new CompositeBlobInfo(keysAndContentSizes);
    long totalSize = compositeBlobInfo.getTotalSize();
    //total size given as input
    assertInvalidGetStoreKeysInByteRange(totalSize, totalSize, compositeBlobInfo);
    //total size and total size + 1 given as input
    assertInvalidGetStoreKeysInByteRange(totalSize, totalSize + 1, compositeBlobInfo);
    //negative number given as input
    assertInvalidGetStoreKeysInByteRange(-1, totalSize - 1, compositeBlobInfo);
    //start bigger than end
    assertInvalidGetStoreKeysInByteRange(totalSize - 1, 0, compositeBlobInfo);
    //start bigger than end, one byte
    assertInvalidGetStoreKeysInByteRange(1, 0, compositeBlobInfo);
    //total range but end equal to total size
    assertInvalidGetStoreKeysInByteRange(0, totalSize, compositeBlobInfo);
  }
Tests various invalid inputs for {@link CompositeBlobInfo#getStoreKeysInByteRange(long, long)}
ambry-messageformat/src/test/java/com/github/ambry/messageformat/CompositeBlobInfoTest.java