title: Mockito.doThrow().when .... Not working well
body: <p>I'm working with JUnit and Mockito to make some unitary tests. I want to handle the excepcion by using the <strong>Mockito.doThrow()</strong>  and I've already made use of it in another tests and it worked the finest way possible. 
  Now I have:</p>
  
  <pre><code>Assigned newAssigned  = new Assigned();
  
        Mockito.doThrow(new SdkFault()).when(Api).addLicenseAssigned("2144", newAssigned  );
  </code></pre>
  
  <p>and when I run the test while making debugging of it when I find this </p>
  
  <pre><code>   Api.addLicenseAssinged(licenseId, newAssigned);
  </code></pre>
  
  <p>It should get the excepcion and throw it me right? Or am I making something wrong?
  And I'm not mocking static methods.</p>