// Verify all expectations.
for (Iterator iterator = getExpectations().iterator(); iterator.hasNext();)
{
ExpectationContainer container =
(ExpectationContainer) iterator.next();
container.verify();
}
}
} finally {
// Clear the state.
setState(null);