public void testNestedPattern()
{
final MessageFormatSupport support = new MessageFormatSupport();
support.setFormatString("$(null,choice,0#$(null)|0<$(dummy))");
final StaticDataRow sdr = new StaticDataRow(new String[]{"null", "dummy"},
new Object[]{IntegerCache.getInteger(0), IntegerCache.getInteger(1)});
final String text = support.performFormat(sdr);
assertEquals("Expected content ", "0", text);
final StaticDataRow sdr2 = new StaticDataRow(new String[]{"null", "dummy"},
new Object[]{IntegerCache.getInteger(1), IntegerCache.getInteger(2)});
support.setNullString("-");
final String ntext = support.performFormat(sdr2);
assertEquals("Expected content w nullString", "2", ntext);
}