@Test public void shouldReturnAWebXmlHandlerWhenThereIsAnEncodingInitParameter() throws Exception { when(context.getInitParameter(ENCODING)).thenReturn("UTF-8"); EncodingHandlerFactory handlerFactory = new EncodingHandlerFactory(context); assertThat(handlerFactory.getInstance(), is(instanceOf(WebXmlEncodingHandler.class))); }
public EncodingHandler getInstance() { return handler; }
EncodingHandlerFactory implements ComponentFactory<EncodingHandler> { public EncodingHandler getInstance() { return handler; } }
EncodingHandlerFactory implements ComponentFactory<EncodingHandler> { public EncodingHandler getInstance() { return handler; } EncodingHandlerFactory(ServletContext context); }
EncodingHandlerFactory implements ComponentFactory<EncodingHandler> { public EncodingHandler getInstance() { return handler; } EncodingHandlerFactory(ServletContext context); EncodingHandler getInstance(); }
EncodingHandlerFactory implements ComponentFactory<EncodingHandler> { public EncodingHandler getInstance() { return handler; } EncodingHandlerFactory(ServletContext context); EncodingHandler getInstance();  }