void () { TextChangeImpl base = new TextChangeImpl("xyz", 3, 5); int[] offsets = {5, 0, -3}; for (int offset : offsets) { int start = base.getStart(); int end = base.getEnd(); base.advance(offset); assertEquals(new TextChangeImpl(base.getText(), start + offset, end + offset), base); } }