@Test
    void computeReadTimeout_bolth_enforceMax() {
        requestConfig.set(
                CommonClientConfigKey.ReadTimeout,
                (int) OriginTimeoutManager.MAX_OUTBOUND_READ_TIMEOUT_MS.get() + 1000);
        originConfig.set(
                CommonClientConfigKey.ReadTimeout,
                (int) OriginTimeoutManager.MAX_OUTBOUND_READ_TIMEOUT_MS.get() + 10000);

        Duration timeout = originTimeoutManager.computeReadTimeout(request, 1);

        assertEquals(OriginTimeoutManager.MAX_OUTBOUND_READ_TIMEOUT_MS.get(), timeout.toMillis());
    }
Origin Timeout Manager Test

@author Arthur Gonigberg
@since March 23, 2021
zuul-core/src/test/java/com/netflix/zuul/netty/timeouts/OriginTimeoutManagerTest.java