source: class AttributesStatementTest extends StatementsContainer {
  
      @Mock
      private Logger log;
      @Mock
      private ELParser parser;
      @Mock
      private TypedTemplateStatement parsedExpression;
      @Mock
      @TemplateModel
      private FreeMarkerRenderer renderer;
      @Inject
      private AttributesStatement statement;
      @Inject
      private MockController controller;
  
      @Test
      public void testProcessSimpleHtmlAttribute() throws Exception {
  
target:         expect(parser.parse(eq("header"), isA(WriteAttributeStatement.class), same(TypesFactory.OBJECT_TYPE))).andReturn(
                  parsedExpression);
          parsedExpression.setParent(isA(WriteAttributeStatement.class));
          expectLastCall();
          processAttributes("div", "id", "header");
          assertEquals(1, statement.getStatements().size());
          assertThat(statement.getStatements().get(0), instanceOf(WriteAttributeStatement.class));
      }
  
  }