}
@Test
public void testSetConfigurationThrowsNullPointerException() throws Throwable {
ChannelPool channelPool = new ChannelPool();
Configuration cfg = new SubConfiguration();
try {
channelPool.setConfiguration(cfg);
fail("Expected NullPointerException to be thrown");
} catch (NullPointerException ex) {
assertSame("channelPool.cfg", cfg, channelPool.cfg);