public static String classPackageAsResourcePath(Class<?> clazz) {
        if (clazz == null) {
            return "";
        }
        String className = clazz.getName();
        int packageEndIndex = className.lastIndexOf(PACKAGE_SEPARATOR);
        if (packageEndIndex == -1) {
            return "";
        }
        String packageName = className.substring(0, packageEndIndex);
        return packageName.replace(PACKAGE_SEPARATOR, PATH_SEPARATOR);
    }
@Test
    void testClassPackageAsResourcePath() throws ClassNotFoundException {
        Class noPackageClass = ClassUtils.forName("ClassUtilsTestMockClass", null);
        assertEquals("", ClassUtils.classPackageAsResourcePath(null));
        assertEquals("", ClassUtils.classPackageAsResourcePath(noPackageClass));
        assertEquals("com/alibaba/nacos/common/utils", ClassUtils.classPackageAsResourcePath(ClassUtilsTest.class));
    }