public class ComplexAttributeTest {
@Test
public void testBasic() {
try {
TemplateTokenizer tokenizer = new TemplateTokenizer(ParserTest.class.getResourceAsStream("basic.html"));
TemplateParser parser = new TemplateParser(tokenizer, Expressions.cambridgeExpressionLanguage);
ExpressionContext context = new MapExpressionContext();
context.put("class", "test");
TemplateDocument t = parser.parse();
assertNotNull(t);
Attribute a = t.locateTag("/div").getAttribute("class");
assertTrue(a instanceof ComplexAttribute);