@Test(expectedExceptions = SystemException.class)
public void testCompressShouldThrowSystemExceptionWhenSAXExceptionIsCatched() throws ParserConfigurationException, SAXException {

    //GIVEN
    given(saxParserFactory.newSAXParser()).willThrow(new SAXException());
    //WHEN
    underTest.compress(inputStream);
    //THEN exception should be thrown
}