@Test
public void shouldSetExpiredPasswordWhenPwdGraceUseTimeIsActive(){

    Attribute pwdGraceUseTime = new BasicAttribute("pwdGraceUseTime");
    Attributes attributes = new BasicAttributes();
    attributes.put(pwdGraceUseTime);
    when(ldapUserDetails.getAttributes()).thenReturn(attributes);
    User userForTest = getUserForTest();
    Boolean passExpired = sut.checkExpiredPassword(ldapUserDetails.getAttributes());
    userForTest.setPasswordExpired(passExpired);
    assertThat(passExpired ,is(true));
}