void () { String jarRoot = PathManager.getResourceRoot(getClass(), "/" + Test.class.getName().replace('.', '/') + ".class"); assertNotNull(jarRoot); assertTrue(jarRoot, jarRoot.endsWith(".jar")); assertTrue(new File(jarRoot).isFile()); String dirRoot = PathManager.getResourceRoot(getClass(), "/" + PathManager.class.getName().replace('.', '/') + ".class"); assertNotNull(dirRoot); assertFalse(dirRoot, dirRoot.endsWith("/")); assertTrue(new File(dirRoot).isDirectory()); }