@Test
public void testCompressShouldCallFinish() throws IOException {

    //GIVEN
    given(source.read((byte[]) Mockito.any())).willReturn(-1);
    //WHEN
    underTest.compress(source);
    //THEN
    verify(gzipOutputStream).finish();
}