title: How to mock application context
body: <p>How do we mock an Application Context? I got a presenter which I intend to write a test for. The parameters it receives were a <code>view</code> and <code>Context</code>. How do I create a mock for context to work?</p>
  <pre><code>public TutorProfilePresenter(TutorProfileScreenView view, Context context){
       this.view = view;
       this.context = context
  }
              
  public void setPrice(float price,int selectedTopics){
        int topicsPrice = 0;
        if(selectedTopics&gt;2)
        {
          topicsPrice = (int) ((price/5.0)*(selectedTopics-2));
        }
                      
                      
        view.setBasePrice(price,topicsPrice,selectedTopics,
                          price+topicsPrice);
  }
  </code></pre>