public static Set<String> getDependencyTree(final byte[] jarBytes) {
        Set<String> dependencies = new HashSet<>();
        try (InputStream inputStream = new ByteArrayInputStream(jarBytes);
             ZipInputStream zipInputStream = new ZipInputStream(inputStream)) {
            ZipEntry entry;
            while ((entry = zipInputStream.getNextEntry()) != null) {
                if (entry.getName().endsWith(".class")) {
                    ClassNode classNode = new ClassNode(Opcodes.ASM7);
                    ClassReader classReader = new ClassReader(zipInputStream);
                    classReader.accept(classNode, 0);
                    addDependencies(classNode.superName, dependencies);
                    for (String interfaceName : classNode.interfaces) {
                        addDependencies(interfaceName, dependencies);
                    }
                    for (FieldNode fieldNode : classNode.fields) {
                        addDependencies(Type.getType(fieldNode.desc).getClassName(), dependencies);
                    }
                    for (MethodNode methodNode : classNode.methods) {
                        addDependencies(Type.getReturnType(methodNode.desc).getClassName(), dependencies);
                        for (Type argumentType : Type.getArgumentTypes(methodNode.desc)) {
                            addDependencies(argumentType.getClassName(), dependencies);
                        }
                    }
                }
            }
            return dependencies;

        } catch (Exception e) {
            LOG.error("get dependency tree error", e);
            throw new ShenyuException(AdminConstants.THE_PLUGIN_JAR_FILE_IS_NOT_CORRECT_OR_EXCEEDS_16_MB);
        }
    }
@Test
    public void test() {
        try (MockedConstruction<ByteArrayInputStream> byteStream = mockConstruction(ByteArrayInputStream.class);
             MockedConstruction<ZipInputStream> zipStream = mockConstruction(ZipInputStream.class, (mock, context) -> when(mock.getNextEntry()).thenReturn(new ZipEntry("abc.class")).thenReturn(null));
             MockedConstruction<ClassNode> classNode = mockConstruction(ClassNode.class, (mock, context) -> {
                 Field superName = ClassNode.class.getDeclaredField("superName");
                 superName.set(mock, "superName");
                 Field interfaces = ClassNode.class.getDeclaredField("interfaces");
                 interfaces.set(mock, Lists.newArrayList("interface"));
                 FieldNode fieldNode = mock(FieldNode.class);
                 Field fieldDesc = FieldNode.class.getDeclaredField("desc");
                 fieldDesc.set(fieldNode, "desc");
                 Field fields = ClassNode.class.getDeclaredField("fields");
                 fields.set(mock, Lists.newArrayList(fieldNode));
                 MethodNode methodNode = mock(MethodNode.class);
                 Field methodDesc = MethodNode.class.getDeclaredField("desc");
                 methodDesc.set(methodNode, "desc");
                 Field methods = ClassNode.class.getDeclaredField("methods");
                 methods.set(mock, Lists.newArrayList(methodNode));
             });
             MockedConstruction<ClassReader> classReader = mockConstruction(ClassReader.class);
             MockedStatic type = mockStatic(Type.class)) {
            when(Type.getType(anyString())).thenReturn(Type.BOOLEAN_TYPE);
            when(Type.getReturnType(anyString())).thenReturn(Type.CHAR_TYPE);
            when(Type.getArgumentTypes(anyString())).thenReturn(new Type[] {Type.INT_TYPE});
            assertNotNull(JarDependencyUtils.getDependencyTree(null));
        }
    }