Listener listener = new Listener(10);
server.addNotificationListener(getObjectName(), listener, new RunTimerFilter(), "runTimer");
server.invoke(getObjectName(), "startTimer", null, null);
synchronized( listener )
{
listener.wait(15000);
}
server.removeNotificationListener(getObjectName(), listener);
int count = listener.getCount();
assertTrue("Received 10 notifications, count="+count, count == 10);
}