@Test
void intercept() {

    WebServiceClientInterceptor interceptor = mock(WebServiceClientInterceptor.class);
    webServiceClient.intercept(interceptor);
    var response = new HTTPResponse(200, Map.of(), new byte[0]);
    when(httpClient.execute(any())).thenReturn(response);
    webServiceClient.execute(HTTPMethod.GET, "/api", null, null, void.class);
    verify(interceptor).onRequest(argThat(request -> request.method == HTTPMethod.GET
            && "http://localhost/api".equals(request.uri)));
    verify(interceptor).onResponse(response);
}