@Test
public void testCacheBelowCapacityRequestOnBoundary() throws Exception {

  storeEdits(1, 5);
  storeEdits(6, 20);
  storeEdits(21, 30);
  // First segment only
  assertTxnCountAndContents(1, 3, 3);
  // Second segment only
  assertTxnCountAndContents(6, 10, 15);
  // First and second segment
  assertTxnCountAndContents(1, 7, 7);
  // All three segments
  assertTxnCountAndContents(1, 25, 25);
  // Second and third segment
  assertTxnCountAndContents(6, 20, 25);
  // Second and third segment; request past the end
  assertTxnCountAndContents(6, 50, 30);
  // Third segment only; request past the end
  assertTxnCountAndContents(21, 20, 30);
}