@Test(expected = SecurityException.class) public void getUsername() { sut.getUsername(); }
public String getUsername() { throw new SecurityException(EXCEPTION_MSG); }
NoCurrentUserDetails implements UserDetails { public String getUsername() { throw new SecurityException(EXCEPTION_MSG); } }
NoCurrentUserDetails implements UserDetails { public String getUsername() { throw new SecurityException(EXCEPTION_MSG); }  }
NoCurrentUserDetails implements UserDetails { public String getUsername() { throw new SecurityException(EXCEPTION_MSG); }  GrantedAuthority[] getAuthorities(); String getPassword(); String getUsername(); boolean isAccountNonExpired(); boolean isAccountNonLocked(); boolean isCredentialsNonExpired(); boolean isEnabled(); }
NoCurrentUserDetails implements UserDetails { public String getUsername() { throw new SecurityException(EXCEPTION_MSG); }  GrantedAuthority[] getAuthorities(); String getPassword(); String getUsername(); boolean isAccountNonExpired(); boolean isAccountNonLocked(); boolean isCredentialsNonExpired(); boolean isEnabled();  }