### Question:
BlockInfo { public long getRangeRight() { return startOffset + contentLength - 1; } BlockInfo(long startOffset, long contentLength);  BlockInfo(long startOffset, long contentLength, @IntRange(from = 0) long currentOffset); long getCurrentOffset(); long getStartOffset(); long getRangeLeft(); long getContentLength(); long getRangeRight(); void increaseCurrentOffset(@IntRange(from = 1) long increaseLength); void resetBlock(); BlockInfo copy(); @Override String toString();  }### Answer:
@Test public void getRangeRight() { BlockInfo info = new BlockInfo(0, 3, 1); assertThat(info.getRangeRight()).isEqualTo(2); info = new BlockInfo(12, 6, 2); assertThat(info.getRangeRight()).isEqualTo(17); }