The test cases of the forms are realized with Selenium and Drone. Selenium lets you test web applications, simulating navigation with the browser. To start a Selenium test, you simply need a web driver configured with the name of the browser that you want to use, and then you can put the Java commands to navigate in the web. Here's an example of injection of the web driver through Drone, a sophisticated inject engine by Arquillian, the filling of the data field and, in the end, a click on the Submit button:
@Drone
private WebDriver driver;
...
driver.get(url);
driver.findElement(id("data")).sendKeys("my_data");
driver.findElement(xpath("html/body/form/input[2]")).click();