    @Test
    public void testToJarFile() throws Exception {

        URL resourceURL = ClassLoaderUtils.getClassResource(classLoader, String.class);
        JarFile jarFile = JarUtils.toJarFile(resourceURL);
        JarFile rtJarFile = new JarFile(new File(SystemUtils.JAVA_HOME, "/lib/rt.jar"));
        Assert.assertNotNull(jarFile);
        Assert.assertEquals(rtJarFile.getName(), jarFile.getName());
    }