Assert.assertEquals(expected, template.createViewModel());
}
@Test
public void createViewModel_composite_case() {
XhtmlTemplate template = new XhtmlTemplate("test");
template.stack(new ExpressionNode("foo.bar"));
template.stack(new ExpressionNode("poo"));
Map<String, Object> expected = new HashMap<String, Object>();
Map<String, Object> foo = new HashMap<String, Object>();
foo.put("bar", XhtmlTemplate.NULL_VALUE);
expected.put("foo", foo);
expected.put("poo", XhtmlTemplate.NULL_VALUE);
Assert.assertEquals(expected, template.createViewModel());
}