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