* print Ok. A failure test is following where we post to a non-existent URL
*/
public void testHttpPoster() throws Exception
{
// Test HttpPoster posts correctly to the servlet
HttpPoster hp = getHttpPoster(baseURL + contextPath);
assertNotNull(hp);
hp.run();
List<String> response = hp.get_response();
assertTrue(response.size() > 0);
assertEquals("OK <br>", response.get(0).toString());
// Failure Test
hp = getHttpPoster("http://localhost/nonexistent");
hp.run();
response = hp.get_response();
assertTrue(response.size() == 0);
}