public void createViewModel_condition_with_expression() {
XhtmlTemplate template = new XhtmlTemplate("test");
StartTagNode start = new StartTagNode("div", "prk:if", "cond");
EndTagNode end = new EndTagNode("div");
ExpressionNode node = new ExpressionNode("name");
template.stack(new ConditionNode(start, end, new Node[] { node }));
Map<String, Object> expected = new HashMap<String, Object>();
expected.put("cond", XhtmlTemplate.NULL_VALUE);
expected.put("name", XhtmlTemplate.NULL_VALUE);
Assert.assertEquals(expected, template.createViewModel());
}