String localName = "decorateAll";
String qName = "decorateAll";
given(this.templateTag.getNamespace()).willReturn(namespace);
given(this.templateTag.getLocalName()).willReturn("template");
given(this.templateTag.getValue(this.ctx)).willReturn(TEMPLATE);
TagAttributes attributes = new TagAttributesImpl(new TagAttribute[] { this.templateTag });
Tag tag = new Tag(location, namespace, localName, qName, attributes);
given(this.tagConfig.getTag()).willReturn(tag);
given(this.delegate.getType(this.component1)).willReturn(Type.COMPONENT);
given(this.delegate.createdDecoratedChild(eq(this.component1), this.variableDeclarationHandlers1.capture()))
.willReturn(this.decoratedComponent1);