@Test
public void testToString() {

     BufferPositionParser parser = new BufferPositionParser(Integer.MAX_VALUE,Integer.MAX_VALUE);
     Range r1 = new Range(1, 100);
     String exp = "{start:1:[GenId=0;Index=0;Offset=1] - end:100:[GenId=0;Index=0;Offset=100]}";
     AssertJUnit.assertEquals("Range ToString", exp,r1.toString(parser));
     r1 = new Range(0, Integer.MAX_VALUE);
     exp = "{start:0:[GenId=0;Index=0;Offset=0] - end:2147483647:[GenId=0;Index=0;Offset=2147483647]}";
     AssertJUnit.assertEquals("Range ToString", exp,r1.toString(parser));
     r1 = new Range(0, Long.MAX_VALUE);
     exp = "{start:0:[GenId=0;Index=0;Offset=0] - end:" + Long.MAX_VALUE +
           ":[GenId=1;Index=2147483647;Offset=2147483647]}";
     AssertJUnit.assertEquals("Range ToString", exp,r1.toString(parser));
}