void () { final List<FormatStringChunk> chunks = parseNewStyleFormat("{:,}"); TestCase.assertEquals(1, chunks.size()); assertEquals(TextRange.create(0, 4), chunks.get(0).getTextRange()); assertTrue(((NewStyleSubstitutionChunk)chunks.get(0)).hasThousandsSeparator()); }