0, 1, new TestSimpleExpectation("A"));
RepeatingExpectation repeating
= new RepeatingExpectation(20, 300, nested);
// Process and event to move it towards a partially satisfied state.
repeating.checkExpectations(ExpectationState.CURRENT, new TestEvent("A"), report);
// Make sure that it is not partially satisfied.
try {
repeating.verify();
fail("Partially satisfied");
} catch (AssertionFailedError e) {
// Worked.
}
// The unhandled event should cause the repeating expectation to be
// satisfied but not consume the event.
EventEffect effect = repeating.checkExpectations(
ExpectationState.CURRENT, new TestEvent("B"), report);
assertSame("Event does not satisfy expectation",
EventEffect.WOULD_SATISFY, effect);
}