} catch (Throwable e) {
assertThat(listener.cause).isInstanceOf(MockitoAssertionError.class);
}
}
@Test
<BUG>public void verification_that_throws_runtime_exception() {

Foo foo = mock(Foo.class);</BUG>
try {
verify(foo, new RuntimeExceptionVerificationMode()).doSomething("");

} catch (Throwable e) {
assertThat(listener.cause).isInstanceOf(MockitoAssertionError.class);
}
}
@Test
public void should_notify_when_verification_throws_runtime_exception() {
RememberingListener listener = new RememberingListener();
MockitoFramework mockitoFramework = Mockito.framework();
mockitoFramework.addListener(listener);
Foo foo = mock(Foo.class);
try {
verify(foo, new RuntimeExceptionVerificationMode()).doSomething("");
