### Question:
AnonymousUser extends JCUser { @Override public boolean isAnonymous() { return true; } AnonymousUser(); @Override Collection<GrantedAuthority> getAuthorities(); @Override String getEmail(); @Override String getEncodedUsername(); @Override List<Group> getGroups(); @Override long getId(); @Override String getPassword(); @Override String getUsername(); @Override boolean isAnonymous();  }### Answer:
@Test public void testIsAnonymous() { assertTrue(user.isAnonymous()); }