### Question:
DefaultUserDetails implements UserDetails { @Override public boolean isAccountNonExpired() { return true; }  @Override Collection<? extends GrantedAuthority> getAuthorities(); @Override String getPassword(); @Override String getUsername(); @Override boolean isAccountNonExpired(); @Override boolean isAccountNonLocked(); @Override boolean isCredentialsNonExpired(); @Override boolean isEnabled(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void shouldBeTrue_whenIsAccountNonExpired() { boolean output = userDetails.isAccountNonExpired(); boolean expected = true; assertThat(output).isEqualTo(expected); }