code: public static void verifyException(ThrowingCallable actor, Class<? extends Exception> clazz) {
          validateArguments(actor, clazz);
          catchException(actor, clazz, true);
      }
docs: Use it to verify that an exception of specific type is thrown and to get
  access to the thrown exception (for further verifications).
  
  The following example verifies that obj.doX() throws a MyException:
  <code>verifyException(obj, MyException.class).doX(); // catch and verify
  assert "foobar".equals(caughtException().getMessage()); // further analysis
  </code>
  
  If <code>doX()</code> does not throw a <code>MyException</code>, then a
  {@link ExceptionNotThrownAssertionError} is thrown. Otherwise the thrown
  exception can be retrieved via {@link #caughtException()}.
  
  
  @param actor The instance that shall be proxied. Must not be
  <code>null</code>.
  @param clazz The type of the exception that shall be thrown by the
  underlying object. Must not be <code>null</code>.