@Override
    public Endpoint<Http2LocalFlowController> local() {
        return localEndpoint;
    }
@Test
    public void createShouldThrowWhenMaxAllowedStreamsOpenExceeded() throws Http2Exception {
        server.local().maxActiveStreams(0);
        assertThrows(Http2Exception.class, new Executable() {
            @Override
            public void execute() throws Throwable {
                server.local().createStream(2, true);
            }
        });
    }