public static void unRegistry(NotificationListener notificationListener,
            Class<? extends NotificationType> typeClass) {
        if (!isEnable()) {
            return;
        }
        List<NotificationListener> listenerList = NOTIFICATION_LISTENER_MAP.get(typeClass.getCanonicalName());
        if (listenerList != null) {
            listenerList.remove(notificationListener);
        }
    }
@Test
    public void unRegistry() {
        ListenerTest listenerTest = new ListenerTest();
        NotificationManager.registry(listenerTest, NettyNotificationType.class);
        NotificationManager.unRegistry(listenerTest, NettyNotificationType.class);
        Optional<?> mapOptional = ReflectUtils.getStaticFieldValue(NotificationManager.class, LISTENER_MAP);
        Assert.assertTrue(mapOptional.isPresent());
        Map<String, List<NotificationListener>> map = (Map<String, List<NotificationListener>>) mapOptional.get();
        List<NotificationListener> notificationListeners =
                map.get(NettyNotificationType.class.getCanonicalName());
        Assert.assertFalse(notificationListeners.contains(listenerTest));

    }