public static void registry(NotificationListener notificationListener,
            Class<? extends NotificationType> typeClass) {
        if (!isEnable()) {
            return;
        }
        List<NotificationListener> listenerList = NOTIFICATION_LISTENER_MAP.computeIfAbsent(
                typeClass.getCanonicalName(), key -> new ArrayList<>());
        listenerList.add(notificationListener);
    }
@Test
    public void registry() {
        NotificationManager.registry(new 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();
        Assert.assertTrue(map.containsKey(NettyNotificationType.class.getCanonicalName()));
    }