public final String postSite = "http://www.snee.com/xml/crud/posttest.cgi";
@Test
public void testPost() {
WebDownloader downloader = new WebDownloader();
downloader.addFormElement("fname", "Masked");
downloader.addFormElement("lname", "Man");
downloader.setMethod(WebDownloader.METHOD_POST);
try {
downloader.setUrl(postSite);
String source = new String(downloader.download());
if (source.contains("First name: \"Masked\""))
assertTrue(true);
else
fail("Can't find the string:\n\n"+source);