@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)));
}