@Test(expectedExceptions = SystemException.class)
public void testDecompressWhenTransformerFactoryConfigurationErrorIsThrownShouldLogError() throws TransformerConfigurationException {

    //GIVEN
    StreamResult result = new StreamResult(new StringWriter());
    given(transformerFactory.createTransformer()).willThrow(new TransformerFactoryConfigurationError());
    given(streamResultFactory.createStreamResult()).willReturn(result);
    //WHEN
    underTest.decompress(inputStream);
    //THEN it should throw exception
}