void () { final List<FormatStringChunk> chunks = parseNewStyleFormat("{a:d}"); TestCase.assertEquals(1, chunks.size()); assertEquals(TextRange.create(0, 5), chunks.get(0).getTextRange()); assertEquals("a", ((NewStyleSubstitutionChunk)chunks.get(0)).getMappingKey()); assertEquals('d', ((NewStyleSubstitutionChunk)chunks.get(0)).getConversionType()); }