@Test
public void testProcessShouldNotSetBodyWhenDecompressionNotNeeded() throws ApplicationException {

    //GIVEN
    given(entity.getHeader(GZIP_ENCODING)).willReturn("xml");
    given(entity.getInputStream()).willReturn(inputStream);
    given(decompressor.decompress(inputStream)).willReturn(body);
    //WHEN
    underTest.process(entity);
    //THEN
    verify(decompressor, never()).decompress(inputStream);
}