@Test
public void shouldReadNonZippedInputStream() throws IOException {

    // given
    final String content = "non-zipped content";
    when(delegate.get(any()))
            .then((Answer<InputStream>) invocation -> new ByteArrayInputStream(content.getBytes()));
    ContentCache contentCache = new ZippedContentCache(delegate);
    // when
    final InputStream stream = contentCache.get(() -> StringUtils.EMPTY);
    // then
    verify(delegate, times(2)).get(any());
    assertEquals(ByteArrayInputStream.class, stream.getClass());
    assertEquals(content, IOUtils.toString(stream, "UTF-8"));
}