@Test
void interceptWithTimeout() throws IOException {

    var httpRequest = new HTTPRequest(HTTPMethod.POST, "https://localhost");
    httpRequest.timeout = Duration.ofSeconds(30);
    var request = new Request.Builder().url(httpRequest.uri).tag(HTTPRequest.class, httpRequest).build();
    when(chain.request()).thenReturn(request);
    when(chain.withReadTimeout(30000, TimeUnit.MILLISECONDS)).thenReturn(chain);
    when(chain.withWriteTimeout(30000, TimeUnit.MILLISECONDS)).thenReturn(chain);
    interceptor.intercept(chain);
}