@Test
public void testEnsureCapcity() throws IOException {

  MockChannelFactory factory = new MockChannelFactory();
  ChannelPool pool = new ChannelPool(factory, 4);
  Assert.assertEquals(4, factory.channels.size());
  Assert.assertEquals(4, pool.size());
}