@Override
    public HttpRestResult<T> convertResult(HttpClientResponse response, Type responseType) throws Exception {
        final Header headers = response.getHeaders();
        InputStream body = response.getBody();
        T extractBody = JacksonUtils.toObj(body, responseType);
        return new HttpRestResult<>(headers, response.getStatusCode(), extractBody, null);
    }
@Test
    void testConvertResult() throws Exception {
        List<Integer> testCase = new LinkedList<>();
        for (int i = 0; i < 10; i++) {
            testCase.add(i);
        }
        byte[] bytes = JacksonUtils.toJsonBytes(testCase);
        InputStream inputStream = new ByteArrayInputStream(bytes);
        HttpClientResponse response = mock(HttpClientResponse.class);
        when(response.getBody()).thenReturn(inputStream);
        when(response.getHeaders()).thenReturn(Header.EMPTY);
        when(response.getStatusCode()).thenReturn(200);
        BeanResponseHandler<List<Integer>> beanResponseHandler = new BeanResponseHandler<>();
        beanResponseHandler.setResponseType(List.class);
        HttpRestResult<List<Integer>> actual = beanResponseHandler.handle(response);
        assertEquals(200, actual.getCode());
        assertEquals(testCase, actual.getData());
        assertNull(actual.getMessage());
        assertEquals(Header.EMPTY, actual.getHeader());
    }