StringRenderer implements Renderer { public boolean isRenderable(String value, Request request) { return value != null; }  @Override void render(String value, Request request); boolean isRenderable(String value, Request request);  }
@Test public void testIsRenderable() { Request requestContext = createMock(Request.class); replay(requestContext); assertTrue(renderer.isRenderable("Result", requestContext)); verify(requestContext); }