WICKET-5289 setRequired(true) should add the HTML5 "required" attribute on <input> and <textarea> elements
Add Apache licence.

Fix test expectation.