### Question:
FlowControlCounter { public void setStreamMaxBytes(final long sid, final long streamMaxBytes) { checkArgument(streamMaxBytes > 0); final StreamCounter stream = streams.computeIfAbsent(sid, ignored -> new StreamCounter()); final AtomicLong streamMax = stream.maxOffset; streamMax.updateAndGet(current -> max(streamMaxBytes, current)); } FlowControlCounter(final long connectionMaxBytes, final long streamMaxBytes); synchronized TryConsumeResult tryConsume(final long sid, final long offset); void resetStream(final long sid, final long finalOffset); void setConnectionMaxBytes(final long connectionMaxBytes); long increaseStreamMax(final long sid); long increaseConnectionMax(); void setStreamMaxBytes(final long sid, final long streamMaxBytes);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void setMaxStreamNegative() { fcm.setStreamMaxBytes(sid, -1); }