title: Enzyme call method
body: <p>Let's say I have a method in my React component:</p>
  
  <pre><code>doSomething() {
      // method uses this.props and this.state
  }
  </code></pre>
  
  <p>I want to test this method for different props and states that are set. So how can I call it? <code>MyClass.prototype.doSomething</code> will call the function, but then <code>this.props</code> and <code>this.state</code> are not set. </p>