@Test
public void shouldSupportGetAndPostRequests() {
WebDriver htmlUnitDriver = new InProcessHtmlUnitDriver(httpAppTester);
htmlUnitDriver.get("http://localhost/contacts/add");
assertThat(htmlUnitDriver.getTitle(), is("Test Application"));
assertThat(htmlUnitDriver.findElement(By.tagName("h3")).getText(), is("Contact Details"));
WebElement contactNameElement = htmlUnitDriver.findElement(By.name("contactName"));
assertThat(contactNameElement.getAttribute("value"), isEmptyString());
contactNameElement.sendKeys("My Contact");
htmlUnitDriver.findElement(By.tagName("form")).submit();
assertThat(htmlUnitDriver.getCurrentUrl(), is("http://localhost/contacts/1"));
assertThat(htmlUnitDriver.findElement(By.name("contactName")).getAttribute("value"), is("My Contact"));
}