public void testStaticArg() throws ParseException {
String str = "{beginBold,<b>}bold{endBold,</b>}";
List<TemplateChunk> parsed = MessageFormatParser.parse(str);
assertEquals(3, parsed.size());
StaticArgChunk staticArg = (StaticArgChunk) parsed.get(0);
assertEquals("beginBold", staticArg.getArgName());
assertEquals("<b>", staticArg.getReplacement());
StringChunk stringChunk = (StringChunk) parsed.get(1);
assertEquals("bold", stringChunk.getString());
staticArg = (StaticArgChunk) parsed.get(2);
assertEquals("endBold", staticArg.getArgName());
assertEquals("</b>", staticArg.getReplacement());
str = "{test,'{}'''}";
parsed = MessageFormatParser.parse(str);
assertEquals(1, parsed.size());
staticArg = (StaticArgChunk) parsed.get(0);
assertEquals("test", staticArg.getArgName());
assertEquals("{}'", staticArg.getReplacement());
}