private static ConnectionPoolListener newConnectionPoolListener(
            Runnable openRunnable, Runnable closeRunnable) {
        return new ConnectionPoolListener() {
            @Override
            public void connectionOpen(SessionProtocol protocol, InetSocketAddress remoteAddr,
                                       InetSocketAddress localAddr, AttributeMap attrs) throws Exception {
                openRunnable.run();
            }

            @Override
            public void connectionClosed(SessionProtocol protocol, InetSocketAddress remoteAddr,
                                         InetSocketAddress localAddr, AttributeMap attrs) throws Exception {
                closeRunnable.run();
            }
        };
    }
Makes sure Armeria HTTP client respects {@code MAX_CONCURRENT_STREAMS} HTTP/2 setting.
core/src/test/java/com/linecorp/armeria/client/HttpClientMaxConcurrentStreamTest.java