@Test
public void testTransformShouldSetRequestAsParameter() throws SaxonApiException, SAXException {

    //GIVEN
    given(xslCompiler.compileXsl(xslInputStream, processor)).willReturn(xsltExecutable);
    given(xsltExecutable.load()).willReturn(xsltTransformer);
    given(xslOutputProvider.getOutput(xsltTransformer)).willReturn(outputStream);
    setRequestMocks();
    setTemplateMocks();
    //WHEN
    underTest.transform(xslInputStream, requestInputStream, templateInputStream);
    //THEN
    verify(xsltTransformer).setParameter(requestName, requestDocument);
}