public void testIntersectWithStrides() throws InvalidRangeException { Section have = new Section("121:121:1,0:1919:1"); Section want = new Section("100:229:3,100:191:7"); Section intersectCorrect = new Section("121:121:3,100:191:7"); Section intersect = have.intersect( want); assert intersect.equals(intersectCorrect); int offset = want.offset( intersect); assert offset == 98 : offset; }