title: How to use JUnit to test asynchronous processes
body: <p>How do you test methods that fire asynchronous processes with JUnit?</p>
  
  <p>I don't know how to make my test wait for the process to end (it is not exactly a unit test, it is more like an integration test as it involves several classes and not just one).</p>