@Test(expected = StreamException.class)
public void streamExceptionClosesChildChannel() throws Exception {

    LastInboundHandler inboundHandler = streamActiveAndWriteHeaders(inboundStream);
    assertTrue(inboundHandler.isChannelActive());
    StreamException cause = new StreamException(inboundStream.id(), Http2Error.PROTOCOL_ERROR, "baaam!");
    Http2FrameStreamException http2Ex = new Http2FrameStreamException(
            inboundStream, Http2Error.PROTOCOL_ERROR, cause);
    codec.onHttp2FrameStreamException(http2Ex);
    parentChannel.runPendingTasks();
    assertFalse(inboundHandler.isChannelActive());
    inboundHandler.checkException();
}