@Test(expected=NullPointerException.class)
public void testInvalidExpiry() throws Exception {

    final PoolEntry<String, HttpConnection> entry = new PoolEntry<>(
            "route1", TimeValue.of(0L, TimeUnit.MILLISECONDS), currentTimeSupplier);
    entry.updateExpiry(null);
}