@Test
public void testCompressShouldReturnABtyeArrayOutputStream() throws IOException {

    //GIVEN
    given(source.read((byte[]) Mockito.any())).willReturn(-1);
    //WHEN
    ByteArrayOutputStream actual = underTest.compress(source);
    //THEN
    assertEquals(actual, baos);
}