modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/ReceiveMessageBuilder.java
T headerFragment(final Object model, final ObjectMapper objectMapper) {
        try {
            return header(objectMapper.writer().writeValueAsString(model));
        } catch (final JsonProcessingException e) {
            throw new CitrusRuntimeException("Failed to map object graph for message header data", e);
        }
    }
/**
     * Expect this message header data as model object which is mapped to a character sequence
     * using the default object to json mapper before validation is performed.
     * @param model
     * @param objectMapper
     * @return
     */
Expect this message header data as model object which is mapped to a character sequence
using the default object to json mapper before validation is performed.
@param model
@param objectMapper
@return
Expect this message header data as model object which is mapped to a character sequence using the default object to json mapper before validation is performed . @param model @param objectMapper @return
T headerFragment(final Object model, final ObjectMapper objectMapper) {
        try {
            return header(objectMapper.writer().writeValueAsString(model));
        } catch (final JsonProcessingException e) {
            throw new CitrusRuntimeException("Failed to map object graph for message header data", e);
        }
    }
T headerFragment ( final Object model , final ObjectMapper objectMapper ) { try { return header ( objectMapper . writer ( ) . writeValueAsString ( model ) ) ; } catch ( final JsonProcessingException e ) { throw new CitrusRuntimeException ( "Failed to map object graph for message header data" , e ) ; } }
Expect this message header data as model object which is mapped to a character sequence
 using the default object to json mapper before validation is performed.
Expect this message header data as model object which is mapped to a character sequence using the default object to json mapper before validation is performed .