@Test
  public void testRequestExceedPoolCapacity() throws Exception {
    final long capacity = 1024;
    final long maxBlockTimeInMs = 200;
    SimpleByteBufferPool pool = new SimpleByteBufferPool(capacity);
    try {
      pool.allocate((int) capacity + 1, maxBlockTimeInMs);
      fail("Should have thrown!");
    } catch (IllegalArgumentException e) {
    }
  }
This scenario tests when a {@link SimpleByteBufferPool} tries to allocate a {@link ByteBuffer} that is larger
than its capacity. This operation should result in an {@link IllegalArgumentException}.
ambry-utils/src/test/java/com/github/ambry/utils/SimpleByteBufferPoolTest.java