@Test(groups = "netty")
public void transportOptions()
  throws Exception
{

  final NettyConnection conn = new NettyConnection(
    ConnectionConfig.builder()
      .url("ldap://localhost:10389")
      .transportOption("AUTO_READ", "false")
      .transportOption("TCP_NODELAY", true)
      .transportOption("SO_SNDBUF", "1024")
      .transportOption("SO_RCVBUF", 1024)
      .build(),
    NioSocketChannel.class,
    new NioEventLoopGroup(
      0,
      new ThreadPerTaskExecutor(new DefaultThreadFactory(NettyConnectionTest.class, true, Thread.NORM_PRIORITY))),
    null,
    true);
  final Map<ChannelOption, Object> options = conn.getChannelOptions();
  Assert.assertNotNull(options);
  Assert.assertEquals(options.get(ChannelOption.AUTO_READ), false);
  Assert.assertEquals(options.get(ChannelOption.TCP_NODELAY), true);
  Assert.assertEquals(options.get(ChannelOption.SO_SNDBUF), 1024);
  Assert.assertEquals(options.get(ChannelOption.SO_RCVBUF), 1024);
}