modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/ReceiveMessageBuilder.java
public T payload(final Object payload, final Marshaller marshaller) {
        final StringResult result = new StringResult();

        try {
            marshaller.marshal(payload, result);
        } catch (final XmlMappingException | IOException e) {
            throw new CitrusRuntimeException("Failed to marshal object graph for message payload", e);
        }

        setPayload(result.toString());

        return self;
    }
/**
     * Expect this message payload as model object which is marshalled to a character sequence
     * using the default object to xml mapper before validation is performed.
     * @param payload
     * @param marshaller
     * @return
     */
Expect this message payload as model object which is marshalled to a character sequence
using the default object to xml mapper before validation is performed.
@param payload
@param marshaller
@return
Expect this message payload as model object which is marshalled to a character sequence using the default object to xml mapper before validation is performed . @param payload @param marshaller @return
public T payload(final Object payload, final Marshaller marshaller) {
        final StringResult result = new StringResult();
        try {
            marshaller.marshal(payload, result);
        } catch (final XmlMappingException | IOException e) {
            throw new CitrusRuntimeException("Failed to marshal object graph for message payload", e);
        }
        setPayload(result.toString());
        return self;
    }
public T payload ( final Object payload , final Marshaller marshaller ) { final StringResult result = new StringResult ( ) ; try { marshaller . marshal ( payload , result ) ; } catch ( final XmlMappingException | IOException e ) { throw new CitrusRuntimeException ( "Failed to marshal object graph for message payload" , e ) ; } setPayload ( result . toString ( ) ) ; return self ; }
Expect this message payload as model object which is marshalled to a character sequence
 using the default object to xml mapper before validation is performed.
Expect this message payload as model object which is marshalled to a character sequence using the default object to xml mapper before validation is performed .