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