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