@Test
public void settingChannelOptsAndAttrs() {

    AttributeKey<String> key = AttributeKey.newInstance("foo");
    Channel childChannel = newOutboundStream();
    childChannel.config().setAutoRead(false).setWriteSpinCount(1000);
    childChannel.attr(key).set("bar");
    assertFalse(childChannel.config().isAutoRead());
    assertEquals(1000, childChannel.config().getWriteSpinCount());
    assertEquals("bar", childChannel.attr(key).get());
}