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 class=\"foo t-error\" accesskey=\"f\"/>");
verify();