Invoked on the "client-side" (within the test runner) after the
validSearch test completes and sends a response to
the test runner.
// There should be some response from the JSP
assertNotNull("No response text received from JSP",
response.getText());
// Since this was a valid search, there should be no "Error"
// text in the response HTML
assertTrue("Unexpected \"Error:\" indicator in response",
response.getText().indexOf("Error:") < 0);
// In a valid search response, there should be a results header
assertTrue("No results banner seen in response",
response.getText().indexOf("Search Results") >= 0);