@Override
    public Endpoint<Http2RemoteFlowController> remote() {
        return remoteEndpoint;
    }
@Test
    public void serverCreatePushShouldFailOnRemoteEndpointWhenMaxAllowedStreamsExceeded() throws Http2Exception {
        server = new DefaultHttp2Connection(true, 0);
        server.remote().maxActiveStreams(1);
        final Http2Stream requestStream = server.remote().createStream(3, false);
        assertThrows(Http2Exception.class, new Executable() {
            @Override
            public void execute() throws Throwable {
                server.remote().reservePushStream(2, requestStream);
            }
        });
    }