// we should only get 5 messages, which is 1/2 the number of times we touched the object.
// The 1/2 is due to the behavior of the test NotificationFilter implemented below
getMockFixture().getMockEndpoint().setExpectedMessageCount(5);
for (int i = 0; i < 10; i++) {
bean.touch();
}
getMockFixture().waitForMessages();
assertEquals("5 notifications should have been filtered", 5, mRejected.size());