title: Not able to get data from request in Junit when action class implements ParameterAware
body: <p>I need to write jUnit for Struts 2 action class.But action class is implementing <code>ParameterAware</code> interceptor which takes parameter map in <code>HashMap</code> and action class takes all request parameter from this hashmap</p>
  <p><strong>Action Class:</strong></p>
  <pre><code>public class BrokerAction extends ActionSupport implements ServletRequestAware, ServletResponseAware,SessionAware,
          ParameterAware {
  
      /** The parameters. */
      private Map parameters;
  
      @Override
      public void setParameters(final Map param) {
          this.parameters = param;
      }
  
     public String getParameterValue(final String param) {
          final Object varr = getParameters().get(param);
          if (varr == null) {
              return null;    
          }
          return ((String[]) varr)[0];
      }
  
     public String getBrokerDetails()throws PactException{
          String id = getParameterValue(&quot;id&quot;);
     }
  </code></pre>
  <p>When i am putting data from Junit in request then it hasn't reflected in parameters map</p>
  <p><strong>Junit:</strong></p>
  <pre><code>@Test
       public void testGetActionProxy() throws Exception {
          
           request.setAttribute(&quot;id&quot;, &quot;23&quot;);
           ActionProxy proxy   =  getActionProxy(&quot;/getBrokerDetails&quot;);
           BrokerAction brokerAction = (BrokerAction) proxy.getAction();
           brokerAction.getBrokerDetails();
      }
  </code></pre>
  <p>Please help as how request data will be reflected in parameters map</p>