assertThat(listener2).is(notifiedFor(foo, never, invocationWanted));
}
@Test
<BUG>public void should_not_call_listener_when_verify_was_called_incorrectly() {
Foo foo = null;
VerificationListener mockListener = mock(VerificationListener.class);
framework().addListener(mockListener);</BUG>
try {
verify(foo).doSomething("");
fail("Exception expected.");

assertThat(listener2).is(notifiedFor(foo, never, invocationWanted));
}
@Test
public void should_not_call_listener_when_verify_was_called_incorrectly() {
VerificationListener listener = mock(VerificationListener.class);
framework().addListener(listener);
Foo foo = null;
try {
verify(foo).doSomething("");
fail("Exception expected.");
