connection.setExpectedGetHeaderField("HTTP/1.1 200 OK");
connection.setExpectedGetInputStream(
new ByteArrayInputStream("".getBytes()));
// Create a WebResponse object and call the end method
delegator.callEndMethod(request,
new WebResponseObjectFactory(connection));
}
catch (AssertionFailedError e)
{
// Perform asserts