### Question:
NettyClientChannelManager { Channel acquireChannel(String serverAddress) { Channel channelToServer = channels.get(serverAddress); if (channelToServer != null) { channelToServer = getExistAliveChannel(channelToServer, serverAddress); if (channelToServer != null) { return channelToServer; } } if (LOGGER.isInfoEnabled()) { LOGGER.info("will connect to " + serverAddress); } channelLocks.putIfAbsent(serverAddress, new Object()); synchronized (channelLocks.get(serverAddress)) { return doConnect(serverAddress); } } NettyClientChannelManager(final NettyPoolableFactory keyPoolableFactory, final Function<String, NettyPoolKey> poolKeyFunction,
                                     final NettyClientConfig clientConfig);   }### Answer:
@Test void assertAcquireChannelFromPool() { setupPoolFactory(nettyPoolKey, channel); Channel actual = channelManager.acquireChannel("localhost"); verify(poolableFactory).makeObject(nettyPoolKey); Assertions.assertEquals(actual, channel); }