title: Simulate a custom Event using Jest and Enzyme
body: <pre><code>class AgGridWrapper extends React.Component {
    render() {
      return &lt;AgGridReact onCellClicked={this.onCellClicked.this(bind)}
    }
    onCellClicked= (event) = &gt; {
      event.setDataValue(newValue);
    }
  }
  </code></pre>
  
  <p>I have a wrapper component <strong>AgGridWrapper</strong> around <strong>AgGridReact</strong> (AgGridReact is a node module which helps to create HTML Grids). In this example when i click on any cell on the AgGrid it will change the value of the cell.</p>
  
  <p>I want to test this onCellClicked event. so i did the following.</p>
  
  <pre><code>const wrapper= shallow(&lt;AgGridWrapper /&gt;);
  const agGridReact = wrapper.find(AgGridReact);
  
  const eventObject={};
  agGridReact.simulate('cellClicked',eventObect);
  </code></pre>
  
  <p>My intention is to simulate the cellClicked event and check whether the value of the cell got changed or not.
  But here i dont have access to the agGridReact's <strong>setDataValue()</strong> method.
  so i am not able to mock this <strong>eventObject</strong>. </p>
  
  <p>I got stecked here for a couple of days now. and i am under the impression that its technically not possible to  test this functionality because <strong>setDataValue</strong> is not accessible to us.</p>
  
  <p>Any Suggestions on this??</p>