// =====================================================================
// Test Expectations
// =====================================================================
RepeatingExpectation expectation = new RepeatingExpectation(
1, Integer.MAX_VALUE, expectationMock);
EventEffect effect;
// Try one, this should cause the repeating expectation to be partially
// satisfied.
effect = expectation.checkExpectations(ExpectationState.CURRENT,
eventMock, report);
assertEquals(EventEffect.MATCHED_EXPECTATION, effect);
// Try it again but this time the nested expectation fails.
effect = expectation.checkExpectations(ExpectationState.CURRENT,
eventMock, report);
assertEquals(EventEffect.WOULD_SATISFY, effect);
}