@Test
public void testCompileXslShouldCompileSource() throws SaxonApiException {

    //GIVEN
    given(processor.newXsltCompiler()).willReturn(xsltCompiler);
    given(streamSourceFactory.createStreamSource(inputStream)).willReturn(source);
    //WHEN
    underTest.compileXsl(inputStream, processor);
    //THEN
    verify(xsltCompiler).compile(source);
}