How to check that an exception is not thrown using mockito? : <p>I have a simple <code>Java</code> method, I would like to check that it does not throw any <code>exceptions</code>. </p>

<p>I have already mocked the parameters etc, however I am not sure how to use <code>Mockito</code> to test that no exception has been thrown from the method?</p>

<p><strong>Current test code:</strong></p>

<pre><code>  @Test
  public void testGetBalanceForPerson() {

   //creating mock person
   Person person1 = mock(Person.class);
   when(person1.getId()).thenReturn("mockedId");

  //calling method under test
  myClass.getBalanceForPerson(person1);

  //How to check that an exception isn't thrown?


}
</code></pre>
