title: Play framework - How to write unit test using mockito for promise/response map function?
body: <p>I am trying to write unit test using mockito + powermock for the following portion of code.</p>
  
  <pre><code>WS.WSRequestHolder holder = 
  F.Promise&lt;Result&gt; resultPromise = holder.get().map(
      new Function&lt;WS.Response, Result&gt;(){
                  @Override
                  public Result apply(WS.Response response){
                      return processResponse(response, ctx, watch);
                  }
      });
  </code></pre>
  
  <p>I am wondering how can I set expectations and provide mock for holder.get and map function.</p>