@Test
public void willSetOnlyNonNullParameters() throws Exception {

	when(request.getContentType()).thenReturn("application/xml");
	final Deserializer deserializer = mock(Deserializer.class);
	methodInfo.setParameters(new Object[] {"original1", "original2"});
	when(deserializer.deserialize(null, consumeXml)).thenReturn(new Object[] {null, "deserialized"});
	when(deserializers.deserializerFor("application/xml", container)).thenReturn(deserializer);
	interceptor.intercept(stack, consumeXml, null);
	assertEquals(methodInfo.getParameters()[0], "original1");
	assertEquals(methodInfo.getParameters()[1], "deserialized");
	verify(stack).next(consumeXml, null);
}