title: How to write a junit testcase for a void method that creates a new object
body: <pre><code>public class SupportController{
  
      public void disableUserAccount(String username) throws Exception {
          UserAccount userAccount = 
                  new UserAccount(Constants.SYSTEM, Constants.CONTAINER, username);
          UserAccount.disableAccount();
      }
  }
  </code></pre>
  
  <p>How would i test that the useraccount created is disabled?</p>