@Test
public void shouldCheckUserPasswordExpiredStatus(){

    when(ldapUserDetails.getAttributes()).thenReturn(new BasicAttributes());
    final Boolean nonExpiredPassword = sut.checkExpiredPassword(ldapUserDetails.getAttributes());
    assertThat(nonExpiredPassword, is(false));
    Attribute pwdGraceUseTime = new BasicAttribute("pwdGraceUseTime");
    Attributes attributes = new BasicAttributes();
    attributes.put(pwdGraceUseTime);
    when(ldapUserDetails.getAttributes()).thenReturn(attributes);
    final Boolean expiredPassword = sut.checkExpiredPassword(ldapUserDetails.getAttributes());
    assertThat(expiredPassword, is(true));
}