### Question:
DefaultHttp2LocalFlowController implements Http2LocalFlowController { @Override public void receiveFlowControlledFrame( final Http2Stream stream, final ByteBuf data, final int padding, final boolean endOfStream) throws Http2Exception { assert ctx != null && ctx.executor().inEventLoop(); final int dataLength = data.readableBytes() + padding; final FlowState connectionState = connectionState(); connectionState.receiveFlowControlledFrame(dataLength); if (stream != null && !isClosed(stream)) { final FlowState state = state(stream); state.endOfStream(endOfStream); state.receiveFlowControlledFrame(dataLength); } else if (dataLength > 0) { connectionState.consumeBytes(dataLength); } } DefaultHttp2LocalFlowController(final Http2Connection connection);  DefaultHttp2LocalFlowController(
      final Http2Connection connection,
      final float windowUpdateRatio,
      final boolean autoRefillConnectionWindow); @Override DefaultHttp2LocalFlowController frameWriter(final Http2FrameWriter frameWriter); @Override void channelHandlerContext(final ChannelHandlerContext ctx); @Override void initialWindowSize(final int newWindowSize); @Override int initialWindowSize(); @Override int windowSize(final Http2Stream stream); @Override int initialWindowSize(final Http2Stream stream); @Override void incrementWindowSize(final Http2Stream stream, final int delta); @Override boolean consumeBytes(final Http2Stream stream, final int numBytes); @Override int unconsumedBytes(final Http2Stream stream); void windowUpdateRatio(final float ratio); float windowUpdateRatio(); void windowUpdateRatio(final Http2Stream stream, final float ratio); float windowUpdateRatio(final Http2Stream stream); @Override void receiveFlowControlledFrame(
      final Http2Stream stream, final ByteBuf data, final int padding, final boolean endOfStream); static final float DEFAULT_WINDOW_UPDATE_RATIO; }### Answer:
@Test public void dataFrameShouldBeAccepted() throws Http2Exception { receiveFlowControlledFrame(STREAM_ID, 10, 0, false); verifyWindowUpdateNotSent(); }
@Test(expected = Http2Exception.class) public void connectionFlowControlExceededShouldThrow() throws Http2Exception { receiveFlowControlledFrame(STREAM_ID, DEFAULT_WINDOW_SIZE, 1, true); }