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

    client = new DefaultHttp2Connection(false, 0);
    client.remote().maxActiveStreams(1);
    Http2Stream requestStream = client.remote().createStream(2, false);
    client.remote().reservePushStream(4, requestStream);
}