SystemAuthentication implements Authentication { @Override public Collection<? extends GrantedAuthority> getAuthorities() { return Collections.emptyList(); } private  SystemAuthentication(); @Override Collection<? extends GrantedAuthority> getAuthorities(); @Override Object getCredentials(); @Override Object getDetails(); @Override Object getPrincipal(); @Override boolean isAuthenticated(); @Override void setAuthenticated(boolean isAuthenticated); @Override String getName(); static final SystemAuthentication SYSTEM_AUTHENTICATION; }
@Test public void getAuthorities() { assertSame(emptyList(), auth.getAuthorities()); }