@Test(expected=VRaptorException.class)
public void shouldThrowExceptionWhenAnUnsupportedEncodingExceptionOccurs() throws Exception {

doThrow(new UnsupportedEncodingException()).when(request).setCharacterEncoding(anyString());

new WebXmlEncodingHandler("UTF-8").setEncoding(request, response);
}