@Test
public void testToString() {

    Context velociContext = createMock(Context.class);
    HttpServletRequest request = createMock(HttpServletRequest.class);
    HttpServletResponse response = createMock(HttpServletResponse.class);
    Map<String, Object> params = new HashMap<String, Object>();
    params.put("one", "value1");
    replay(velociContext, request, response);
    DefaultRenderable renderable = new DefaultRenderable(velociContext,
            params, response, request);
    assertEquals("Hello!", renderable.toString());
    assertTrue(renderable.getWriter() instanceof StringWriter);
    assertNull(renderable.getInternalContextAdapter());
    verify(velociContext, request, response);
}