### Question:
ByteRange { int getLength() { return (int) (mEnd - mStart + 1); } ByteRange(long start, long end); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void getLength_includesEnd() throws Exception { ByteRange byteRange = new ByteRange(5, 10); int length = byteRange.getLength(); assertEquals(6, length); }