@Test
public void testIsRenderable() {

    Request requestContext = createMock(Request.class);
    expect(container.isValidDefinition("my.definition", requestContext)).andReturn(Boolean.TRUE);
    replay(requestContext, container);
    assertTrue(renderer.isRenderable("my.definition", requestContext));
    assertFalse(renderer.isRenderable(null, requestContext));
    verify(requestContext, container);
}