@Test
public void testDecompressShouldDoTransform() throws TransformerException {

    //GIVEN
    StreamResult result = new StreamResult(new StringWriter());
    given(transformerFactory.createTransformer()).willReturn(transformer);
    given(fastInfosetSourceFactory.createFastInfosetSource(inputStream)).willReturn(fISource);
    given(streamResultFactory.createStreamResult()).willReturn(result);
    given(outputStreamFactory.createByteArrayOutputStream()).willReturn(baos);
    //WHEN
    underTest.decompress(inputStream);
    //THEN
    verify(transformer).transform(fISource, result);
}