@Override
    public Endpoint<Http2LocalFlowController> local() {
        return localEndpoint;
    }
@Test
    public void clientLocalCreateStreamExhaustedSpace() throws Http2Exception {
        client.local().createStream(MAX_VALUE, true);
        Http2Exception expected = assertThrows(Http2Exception.class, new Executable() {
            @Override
            public void execute() throws Throwable {
                client.local().createStream(MAX_VALUE, true);
            }
        });
        assertEquals(Http2Error.REFUSED_STREAM, expected.error());
        assertEquals(Http2Exception.ShutdownHint.GRACEFUL_SHUTDOWN, expected.shutdownHint());
    }