@Test
public void testLeaseInvalid() throws Exception {

    final LaxConnPool<String, HttpConnection> pool = new LaxConnPool<>(2);
    try {
        pool.lease(null, null, Timeout.ZERO_MILLISECONDS, null);
        Assert.fail("NullPointerException should have been thrown");
    } catch (final NullPointerException expected) {
    }
}