public void testChangeEventFilter() {
myEventRegistry.registerUser(TEST_DOMAIN, TEST_USER_ID, null);
checkLog(1, "User \"test_user_id\" registered for domain \"test_domain\".");
assertNull(myEventRegistry.getEventFilter(TEST_DOMAIN, TEST_USER_ID));
myEventRegistry.setEventFilter(TEST_DOMAIN, TEST_USER_ID, new EventFilterTestMode());
checkLog(2, "test_user_id: EventFilter changed for domain \"test_domain\".");
assertNotNull(myEventRegistry.getEventFilter(TEST_DOMAIN, TEST_USER_ID));
myEventRegistry.setEventFilter(TEST_DOMAIN, TEST_USER_ID, null);
checkLog(3, "test_user_id: EventFilter removed from domain \"test_domain\".");