public void setUp() throws Exception {
when(request.getParameterNames()).thenReturn(Collections.<String> emptyEnumeration());
when(deserializers.deserializerFor("application/xml", container)).thenReturn(deserializer);
when(request.getContentType()).thenReturn("application/xml");
methodInfo = new MethodInfo(new ParanamerNameProvider());
instantiator = new ParametersInstantiator(provider, methodInfo, validator, request, flash);
deserializing = new DeserializingObserver(deserializers, container);
controllerMethod = new DefaultControllerMethod(null, DeserializingObserverTest
.DummyResource.class.getDeclaredMethod("consumeXml", String.class, String.class));