String result = st.render();
assertEquals(expected, result);
}
@Test public void testParallelMapThenMap() throws Exception {
STGroup group = new STGroup();
group.defineTemplate("bold", "x", "[<x>]");
group.defineTemplate("test", "names,phones",
"hi <names,phones:{n,p | <n>:<p>;}:bold()>");
ST st = group.getInstanceOf("test");
st.add("names", "Ter");
st.add("names", "Tom");
st.add("names", "Sumana");
st.add("phones", "x5001");
st.add("phones", "x5002");