@Test(expectedExceptions = SystemException.class)
public void testCompressShouldThrowSystemExceptionWhenIOExceptionIsCatched() throws IOException {

    //GIVEN
    given(source.read((byte[]) Mockito.any())).willThrow(new IOException());
    //WHEN
    underTest.compress(source);
    //THEN exception should be thrown
}