Element e = writer.element("label", "accesskey", "f", "class", "foo");
ValidationDecorator decorator = new DefaultValidationDecorator(env, null, null, null);
decorator.insideLabel(field, e);
assertEquals(writer.toString(), "<?xml version=\"1.0\"?>\n<label accesskey=\"f\" class=\"foo t-error\"/>");
verify();
}