title: How do you test, mock context in React tests?
body: <p>I have code like that:</p>
  
  <pre><code>render () {
    ...
  
    const {
      exampleMethod,
    } = this.props;
  
    const { getPath } = this.context;
    const exampletData = exampleMethod(getPath());
  
    ...
  }
  </code></pre>
  
  <p>How can i mock, test context in this example? And how do you test context in general?</p>