CatalogFactory.getInstance().getCatalog("remoting").
addCommand("foo.bar", new ChainProcessorCommand());
processor.process(facesContext, "/foo/bar");
assertEquals(response.getStatus(), HttpServletResponse.SC_OK);
assertEquals("text/x-plain", response.getContentType());
MockPrintWriter writer = (MockPrintWriter) response.getWriter();
char content[] = writer.content();
assertNotNull(content);
assertTrue(content.length > PROCESS_CONTENT.length());
for (int i = 0; i < PROCESS_CONTENT.length(); i++) {
assertEquals("Character at position " + i, PROCESS_CONTENT.charAt(i), content[i]);
}