"a FileUploadField. You can only attach a file to form " +
"component of this type.");
}
MockHttpServletRequest servletRequest = baseWicketTester.getServletRequest();
servletRequest.addFile(formComponent.getInputName(), file, contentType);
}
/**
* Submits the <code>Form</code>. Note that <code>submit</code> can be executed only once.
*/