MarshallingPayloadMethodProcessor extends AbstractPayloadMethodProcessor { public void setUnmarshaller(Unmarshaller unmarshaller) { this.unmarshaller = unmarshaller; } MarshallingPayloadMethodProcessor();  MarshallingPayloadMethodProcessor(Marshaller marshaller);  MarshallingPayloadMethodProcessor(Marshaller marshaller, Unmarshaller unmarshaller); Marshaller getMarshaller(); void setMarshaller(Marshaller marshaller); Unmarshaller getUnmarshaller(); void setUnmarshaller(Unmarshaller unmarshaller); @Override Object resolveArgument(MessageContext messageContext, MethodParameter parameter); @Override void handleReturnValue(MessageContext messageContext, MethodParameter returnType, Object returnValue);  }
@Test public void supportsReturnTypeNoMarshaller() { processor = new MarshallingPayloadMethodProcessor(); processor.setUnmarshaller(unmarshaller); replay(marshaller, unmarshaller); assertFalse("processor supports return type with no marshaller set", processor.supportsReturnType(supportedReturnType)); verify(marshaller, unmarshaller); }