Code example for Multiset

Methods: add

0
    return User.ANONYMOUS;
  } 
 
  @Override 
  public boolean isLoggedIn() { 
    calls.add("isLoggedIn");
    return false; 
  } 
 
  @Override 
  public void logout() { 
    this.remoteCallback.callback(null);
    calls.add("logout");
  } 
 
  @Override 
  public User getUser() {
    this.remoteCallback.callback(null);
    calls.add("getUser");
    return User.ANONYMOUS;