void () { final List<SubstitutionChunk> chunks = filterSubstitutions(parseNewStyleFormat("a{foo}{bar}bc")); TestCase.assertEquals(2, chunks.size()); assertEquals(TextRange.create(1, 6), chunks.get(0).getTextRange()); assertEquals(TextRange.create(6, 11), chunks.get(1).getTextRange()); }