MockHttpServletRequest request = new MockHttpServletRequest();
MockHttpServletResponse response = new MockHttpServletResponse();
SimpleHttpResponse resp = new SimpleHttpResponse("Hello World");
resp.setCookie(new Cookie("test", "value"));
resp.render(request, response);
assertEquals(new Integer(200), new Integer(response.getStatus()));
assertEquals("text/html", response.getContentType());
Cookie[] cookies = response.getCookies();
assertTrue(cookies.length == 1);