@Test
public void testContainsReaderPositionDiffGenId()
{

  // start and end differ only in GenId
  BufferPositionParser parser = new BufferPositionParser(100240000, 3);
  long start = parser.setGenId(0, 1);
  start = parser.setIndex(start, 0);
  start = parser.setOffset(start, 0);
  long end = parser.setGenId(0, 2);
  end = parser.setIndex(end, 0);
  end = parser.setOffset(end, 0);
  // Case when offset != start
  long offset = parser.setGenId(0, 1);
  offset = parser.setIndex(offset, 2);
  offset = parser.setOffset(offset, 10);
  AssertJUnit.assertTrue(Range.containsReaderPosition(start, end, offset, parser));
  AssertJUnit.assertTrue(Range.containsReaderPosition(start, end, start, parser));
  AssertJUnit.assertFalse(Range.containsReaderPosition(start, end, end, parser));
}