@Test(expected = InterceptionException.class)
public void shouldThrowInterceptionExceptionIfAnIOExceptionOccurs() throws Exception {

	when(request.getInputStream()).thenThrow(new IOException());
	when(request.getContentType()).thenReturn("application/xml");
	
	final Deserializer deserializer = mock(Deserializer.class);
	when(deserializers.deserializerFor("application/xml", container)).thenReturn(deserializer);
	interceptor.intercept(stack, consumeXml, null);
}