@Test
public void testProcessShouldCallTransform() 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);
    //WHEN
    underTest.process(request);
    //THEN
    verify(transformer).transform(streamSource, streamResult);
}