@Test
    public void testJavaVersion() {
        JarHell.checkJavaVersion("test_java", "1.8");
        try {
            JarHell.checkJavaVersion("test_java", "1.81");
        } catch (Exception e) {
            Assertions.assertTrue(e instanceof IllegalArgumentException);
            String msg = e.getMessage();
            Assertions.assertTrue(msg.contains("requires Java 1.8"));
        }
    }
Test class for deal with jar hell.
inlong-manager/manager-service/src/test/java/org/apache/inlong/manager/service/plugin/JarHellTest.java