Object wrapper = ((Map.Entry)interceptor.getNotificationListenerWrappers().entrySet().iterator().next()).getValue();
assertEquals(1, interceptor.getNotificationListenerWrapperReferenceCount(wrapper));
assertEquals(1, interceptor.getObjectNames().size());
assertEquals(objectName, interceptor.getObjectNames().keySet().iterator().next());
interceptor.removeNotificationListener(metadata, listener, null, null);
assertEquals(0, interceptor.getNotificationListenerWrapperReferenceCount(wrapper));
assertEquals(0, interceptor.getNotificationListenerWrappers().size());
assertEquals(0, interceptor.getObjectNames().size());
}