title: How to unit test void methods?
body: <p>I have a method like this:</p>
  
  <pre><code>public void processEvent(Event e) {
     save(e); // void method
     broadcast(e); // void method.
  }
  </code></pre>
  
  <p>However i changed it to filter certain events i dont want to broadcast:</p>
  
  <pre><code>public void processEvent(Event e) {
     save(e);
     if (e != "foo") {
        broadcast(e); 
     }  
  }
  </code></pre>
  
  <p>How to unit test this change ?</p>