@Test
public void testIsBlocked_yes() {

    FailedLogin failedLogin = new FailedLogin(Integer.valueOf(5), System.currentTimeMillis());
    try {
        Thread.sleep(1000); // sleep 1 mills
    } catch (InterruptedException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
    assertTrue(failedLogin.isLoginBlocked(Long.valueOf(1))); // blocked for one min.
    try {
        Thread.sleep(60000); // sleep 1 min.
    } catch (InterruptedException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
    assertFalse(failedLogin.isLoginBlocked(Long.valueOf(1)));
}