}
@Test
public void testJsServletGivesErrorWhenJsResponseHasError() throws Exception {
setUp(0);
JsProcessor errorProcessor = new JsProcessor(){
public boolean process(JsRequest jsRequest, JsResponseBuilder builder) throws JsException {
builder.setStatusCode(HttpServletResponse.SC_NOT_FOUND);
builder.addError("Something bad happened");
return false;
}};