@Test
public void testInvalidConstruction() throws Exception {
try {
new BufferingAsyncRequestHandler(null, new DefaultHttpResponseFactory(), new HeapByteBufferAllocator());
Assert.fail("IllegalArgumentException expected");
} catch (IllegalArgumentException ex) {
}
try {
new BufferingAsyncRequestHandler(this.requestHandler, null, new HeapByteBufferAllocator());
Assert.fail("IllegalArgumentException expected");
} catch (IllegalArgumentException ex) {
}
try {
new BufferingAsyncRequestHandler(this.requestHandler, new DefaultHttpResponseFactory(), null);
Assert.fail("IllegalArgumentException expected");
} catch (IllegalArgumentException ex) {
}
}