void () { TextRange big = new TextRange(10, 100); TextRange one = new TextRange(20, 30); TextRange two = new TextRange(60, 70); List<TextRange> result = split(big, Arrays.asList(one, two)); assertEquals(3, result.size()); assertEquals(result.toString(), new TextRange(10, 20), result.get(0)); assertEquals(result.toString(), new TextRange(30, 60), result.get(1)); assertEquals(result.toString(), new TextRange(70, 100), result.get(2)); }