List chain = new ArrayList();
chain.add(interceptor);
chain.add(new NoOpMBeanServerInterceptor());
interceptor.setChain(chain);
MBeanMetaData metadata1 = new NotificationListenerMBeanMetaData(this, ObjectName.getInstance(":type=test1"));
MBeanMetaData metadata2 = new NotificationListenerMBeanMetaData(interceptor, ObjectName.getInstance(":type=test2"));
NotificationListener listener = new NotificationListener()
{
public void handleNotification(Notification notification, Object handback)
{
}