@Test
public void testCheckResponseSuccess() throws IOException {

    Response response = mock(Response.class);
    ResponseProcessor<Object> processor = createProcessorMock();
    Object result = new Object();
    when(response.isSuccess()).thenReturn(Boolean.TRUE);
    when(processor.process(response)).thenReturn(result);
    ResponseProcessor<Object> checkProcessor = HttpUtils.checkResponse(processor);
    Object processorResult = checkProcessor.process(response);
    assertThat(processorResult).isEqualTo(result);
}