SystemAuthentication implements Authentication { @Override public Object getDetails() { return PRINCIPAL; } 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 getDetails() { assertEquals(PRINCIPAL, auth.getDetails()); }