replay();
PageElementFactory factory = new PageElementFactoryImpl(source, resolver, null, null, null);
AttributeToken token = new AttributeToken("name", "value", l);
PageElement element = factory.newAttributeElement(token);
writer.element("root");
element.render(writer, queue);
verify();
assertEquals(element.toString(), "Attribute[name=value]");
assertEquals(writer.toString(), "<root name=\"value\"/>");
}