MockHttpServletResponse httpResponse = new MockHttpServletResponse();
AjaxResponse ajaxResponse = new AjaxResponseImpl("UTF-8");
String text = "questo è un semplice testo";
ajaxResponse.addAction(new ReplaceContentAction("test", new SimpleText(text)));
this.sender.sendResponse(httpResponse, ajaxResponse);
assertTrue(httpResponse.getContentAsString().contains(text));
}