title: How to mock FacesContext - getRequestParameterMap
body: <p>I have a class that I use a getRequestParameterMap to retrieve some data, like this:</p>
  
  <pre><code>FacesContext fc = FacesContext.getCurrentInstance();
  String oidValue = fc.getExternalContext.getRequestParameterMap().get("oidValue");
  </code></pre>
  
  <p>And I need to create some Junit tests because there is some conditionals involved, so what I'm looking for is some way to mock values on:</p>
  
  <pre><code>getRequestParameterMap()
  </code></pre>