title: Trigger a `MouseEvent e` for JUnit testing
body: <p>I am new to testing and am trying to work on a simple JUnit exercise which has a GUI and MainProgram.In the Main Program I have functions that are taking mouse event as a parameter and then changing the state of some variables based on the mouse event. Below is a example function.</p>
  
  <pre><code>abc(MouseEvent e) { //change some values }
  </code></pre>
  
  <p>I am trying to write a test case to simulate the mouse event e to be able to assert the changes made by the function.</p>
  
  <p>I know this may sound really dumb to many of you but I would really like to learn how could I possible simulate the mouse event to be able to test if the function is working correctly</p>