PublisherRenderer implements Renderer { @Override public boolean isRenderable(String path, Request request) { return renderer.isRenderable(path, request); } PublisherRenderer(Renderer renderer); @Override void render(String path, Request request); @Override boolean isRenderable(String path, Request request); void addListener(RendererListener listener);  }
@Test public void testIsRenderable() { Request requestContext = createMock(Request.class); RendererListener listener = createMock(RendererListener.class); replay(requestContext); renderer.addListener(listener); assertTrue(renderer.isRenderable("Result", requestContext)); verify(requestContext); }