@Test(expected = IllegalArgumentException.class)
  public void negativeBufferSize() {
    get("http://localhost").bufferSize(-1);
  }
Set request buffer size to negative value
lib/src/test/java/com/github/kevinsawicki/http/HttpRequestTest.java