@Test
public void testProcessShouldCompressResponseBodyAndSetContentTypeWhenContentTypeIsFastinfoset() {

    //GIVEN
    given(resp.getContentType()).willReturn(ACCEPT_VALUE_FASTINFOSET);
    given(req.getHeader(ACCEPT_HEADER_KEY)).willReturn(ACCEPT_VALUE_FASTINFOSET);
    given(fastInfosetCompressor.compress(any(ByteArrayInputStream.class))).willReturn(outputStream);
    given(outputStream.toByteArray()).willReturn(RESPONSE_BODY.getBytes());
    //WHEN
    byte[] actual = underTest.process(req, resp, RESPONSE_BODY.getBytes());
    //THEN
    verify(resp).setContentType(ACCEPT_VALUE_FASTINFOSET);
    assertEquals(actual, RESPONSE_BODY.getBytes());
}