@Test
    void skipCloseOnCircuitBreaker() {
        OriginName originName = OriginName.fromVipAndApp("whatever", "whatever");
        DefaultClientConfigImpl clientConfig = new DefaultClientConfigImpl();
        DefaultClientChannelManager manager =
                new DefaultClientChannelManager(
                        originName, clientConfig, Mockito.mock(DynamicServerResolver.class), new NoopRegistry()) {
                    @Override
                    protected void updateServerStatsOnRelease(PooledConnection conn) {}

                    @Override
                    protected void releaseHandlers(PooledConnection conn) {}
                };

        PooledConnection connection = mock(PooledConnection.class);
        DiscoveryResult discoveryResult = mock(DiscoveryResult.class);
        doReturn(discoveryResult).when(connection).getServer();
        doReturn(true).when(discoveryResult).isCircuitBreakerTripped();
        doReturn(true).when(connection).isActive();
        doReturn(new EmbeddedChannel()).when(connection).getChannel();

        IConnectionPool connectionPool = mock(IConnectionPool.class);
        doReturn(true).when(connectionPool).release(connection);
        manager.getPerServerPools().put(discoveryResult, connectionPool);
        clientConfig.set(ConnectionPoolConfigImpl.CLOSE_ON_CIRCUIT_BREAKER, false);

        Truth.assertThat(manager.release(connection)).isTrue();
        verify(connection, never()).setInPool(anyBoolean());
        verify(connection, never()).close();
    }
Tests for {@link DefaultClientChannelManager}.  These tests don't use IPv6 addresses because {@link InstanceInfo} is
not capable of expressing them.
zuul-core/src/test/java/com/netflix/zuul/netty/connectionpool/DefaultClientChannelManagerTest.java