### Question:
ConnectionAdapterFactoryImpl implements ConnectionAdapterFactory { @Override public ConnectionFacade createConnectionFacade(final Channel ch, final InetSocketAddress address, final boolean useBarrier) { return new ConnectionAdapterImpl(ch, address, useBarrier); }  @Override ConnectionFacade createConnectionFacade(final Channel ch, final InetSocketAddress address,
            final boolean useBarrier);  }### Answer:
@Test public void test(){ final ConnectionAdapterFactoryImpl connAdapterFactory = new ConnectionAdapterFactoryImpl(); final ConnectionFacade connFacade = connAdapterFactory.createConnectionFacade(channel, address, true); Assert.assertNotNull("Wrong - ConnectionFacade has not created.", connFacade); Assert.assertEquals("Wrong - diffrence between channel.isOpen() and ConnectionFacade.isAlive()", channel.isOpen(), connFacade.isAlive()); }