DefaultHttp2Connection implements Http2Connection { @Override public Http2Stream stream(int streamId) { return streamMap.get(streamId); } DefaultHttp2Connection(boolean server); @Override void addListener(Listener listener); @Override void removeListener(Listener listener); @Override boolean isServer(); @Override Http2Stream connectionStream(); @Override Http2Stream stream(int streamId); @Override boolean streamMayHaveExisted(int streamId); @Override int numActiveStreams(); @Override Http2Stream forEachActiveStream(Http2StreamVisitor visitor); @Override Endpoint<Http2LocalFlowController> local(); @Override Endpoint<Http2RemoteFlowController> remote(); @Override boolean goAwayReceived(); @Override void goAwayReceived(final int lastKnownStream, long errorCode, ByteBuf debugData); @Override boolean goAwaySent(); @Override void goAwaySent(final int lastKnownStream, long errorCode, ByteBuf debugData); @Override PropertyKey newKey();  }
@Test public void getStreamWithoutStreamShouldReturnNull() { assertNull(server.stream(100)); }