@Test
public void testProcessShouldSetRequestBodyXML() throws ApplicationException, TransformerException {

    //GIVEN
    given(request.getHeader(CONTENT_TYPE_HEADER)).willReturn(CONTENT_TYPE_SOAPXML);
    given(transformerFactory.createTransformer()).willReturn(transformer);
    given(streamResultFactory.createStreamResult()).willReturn(streamResult);
    given(streamSourceFactory.createStreamSourceFromString(BODY)).willReturn(streamSource);
    given(streamResult.getWriter()).willReturn(writer);
    given(writer.toString()).willReturn(BODY);
    //WHEN
    underTest.process(request);
    //THEN
    verify(request).setBody(BODY);
}