@Test public void testDoubleListApplyWithNullValueAndNullOption() throws Exception {
// first apply sends [ST, null, ST] to second apply, which puts [] around
// the value. This verifies that null not blank comes out of first apply
// since we don't get [null].
STGroup group = new STGroup();
group.defineTemplate("test", "name", "<name:{n | <n>}:{n | [<n>]}; null=\"n/a\">");
ST st = group.getInstanceOf("test");
st.add("name", "Ter");
st.add("name", null);
st.add("name", "Sumana");
String expected = "[Ter]n/a[Sumana]";