@Test public void testLogout() { assertEquals("logout?faces-redirect=true", someBean.logout()); }
public String logout() { FacesContext.getCurrentInstance().getExternalContext() .invalidateSession(); return "logout?faces-redirect=true"; }
SomeBean { public String logout() { FacesContext.getCurrentInstance().getExternalContext() .invalidateSession(); return "logout?faces-redirect=true"; } }
SomeBean { public String logout() { FacesContext.getCurrentInstance().getExternalContext() .invalidateSession(); return "logout?faces-redirect=true"; }  }
SomeBean { public String logout() { FacesContext.getCurrentInstance().getExternalContext() .invalidateSession(); return "logout?faces-redirect=true"; }  void addMessage(Severity severity, String summary, String detail); String logout(); }
SomeBean { public String logout() { FacesContext.getCurrentInstance().getExternalContext() .invalidateSession(); return "logout?faces-redirect=true"; }  void addMessage(Severity severity, String summary, String detail); String logout();  }