filter.enableType("test");
Object handback = new Object();
proxy.addNotificationListener(this, filter, handback);
messages.clear();
test.sendNotification();
assertTrue(messages.size() == 1);
proxy.removeNotificationListener(this, filter, handback);
messages.clear();