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