@Test
public void testReleaseHealthCheck() {

    final SimpleChannelPool healthCheckOnReleasePool = new SimpleChannelPool(
            new Bootstrap(),
            new CountingChannelPoolHandler(),
            ChannelHealthChecker.ACTIVE,
            true);
    try {
        assertTrue(healthCheckOnReleasePool.releaseHealthCheck());
    } finally {
        healthCheckOnReleasePool.close();
    }
    final SimpleChannelPool noHealthCheckOnReleasePool = new SimpleChannelPool(
            new Bootstrap(),
            new CountingChannelPoolHandler(),
            ChannelHealthChecker.ACTIVE,
            false);
    try {
        assertFalse(noHealthCheckOnReleasePool.releaseHealthCheck());
    } finally {
        noHealthCheckOnReleasePool.close();
    }
}