@Test(groups = "fast")
public void testCheckExpirationTimer() throws Exception
{

    final int expirationInMillis = 100000;
    final ExpirationTimer timer = new ExpirationTimer(expirationInMillis);
    Assert.assertFalse(timer.isExpired());
    Assert.assertTrue(timer.isExpired(System.currentTimeMillis() + expirationInMillis));
    // Check the timer is reset
    Assert.assertFalse(timer.isExpired());
}