@Test
public void addAllJarsToClassPath() {

    String libPath = classpath + File.separator + "lib";
    File[] jarSuffixs = FileUtil.listDirSuffixFiles(libPath, ".jar");
    String[] jars = JVMUtil.addAllJarsToClassPath(libPath);
    assertTrue(ArrayUtil.isNotEmpty(jars));
    assertEquals(jarSuffixs.length, jars.length);
    for (int i = 0, size = jars.length; i < size; i++) {
        assertEquals(jarSuffixs[i].getAbsolutePath(), jars[i]);
    }
    assertNull(JVMUtil.addAllJarsToClassPath(null));
    assertTrue(ArrayUtil.isEmpty(JVMUtil.addAllJarsToClassPath("")));
    assertTrue(ArrayUtil.isEmpty(JVMUtil.addAllJarsToClassPath("notexist")));
}