@Test
public void testGetOptionWhenClosed() {

    ch.close().syncUninterruptibly();
    try {
    ch.config().getSoLinger();
        fail();
    } catch (ChannelException e) {
        assertTrue(e.getCause() instanceof ClosedChannelException);
    }
}