I'm having a hard time trying to implement unit tests on my JSF backing bean classes... For instance some of the methods use session or request parameters, obtained using this sort of code: 

`FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("paramKey");`. 

My question is: how can I test a method which obtains values from the session or request?