modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/ReceiveMessageBuilder.java
public T payload(final Resource payloadResource, final Charset charset) {
        try {
            setPayload(FileUtils.readToString(payloadResource, charset));
        } catch (final IOException e) {
            throw new CitrusRuntimeException("Failed to read payload resource", e);
        }

        return self;
    }
/**
     * Expect this message payload data in received message.
     * @param payloadResource
     * @param charset
     * @return
     */
Expect this message payload data in received message.
@param payloadResource
@param charset
@return
Expect this message payload data in received message . @param payloadResource @param charset @return
public T payload(final Resource payloadResource, final Charset charset) {
        try {
            setPayload(FileUtils.readToString(payloadResource, charset));
        } catch (final IOException e) {
            throw new CitrusRuntimeException("Failed to read payload resource", e);
        }
        return self;
    }
public T payload ( final Resource payloadResource , final Charset charset ) { try { setPayload ( FileUtils . readToString ( payloadResource , charset ) ) ; } catch ( final IOException e ) { throw new CitrusRuntimeException ( "Failed to read payload resource" , e ) ; } return self ; }
Expect this message payload data in received message.
Expect this message payload data in received message .