@Test(expected = Http2Exception.class)
public void serverCreatePushShouldFailOnRemoteEndpointWhenMaxAllowedStreamsExceeded() throws Http2Exception {

    server = new DefaultHttp2Connection(true, 0);
    server.remote().maxActiveStreams(1);
    Http2Stream requestStream = server.remote().createStream(3, false);
    server.remote().reservePushStream(2, requestStream);
}