@Test
public void testDecompressShouldReturnOutputStream() 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
    ByteArrayOutputStream actual = underTest.decompress(inputStream);
    //THEN
    Assert.assertEquals(actual, baos);
}