@Test
public void testHandler() {

    final ChannelPoolHandler handler = new CountingChannelPoolHandler();
    final SimpleChannelPool pool = new SimpleChannelPool(new Bootstrap(), handler);
    try {
        assertSame(handler, pool.handler());
    } finally {
        pool.close();
    }
}