public static String getVersion(String defaultVersion) {
        try {
            String version = VersionUtil.class.getPackage().getImplementationVersion();
            return StringUtil.isBlank(version) ? defaultVersion : version;
        } catch (Throwable e) {
            RecordLog.warn("Using default version, ignore exception", e);
            return defaultVersion;
        }
    }
@Test
    public void testGetDefaultVersion() {
        String defaultVersion = "1.0";
        String version = VersionUtil.getVersion(defaultVersion);
        // Manifest cannot be load before package.
        Assert.assertEquals(defaultVersion, version);
    }