public static String getVersion(Class<?> clazz) {
        String version = clazz.getPackage().getImplementationVersion();
        if (version != null) return version;

        return getManifestAttributeValue(clazz, "Bundle-Version");
    }
@Test
    void gsonVersion() {
        assertThat(JarUtils.getVersion(Gson.class)).isEqualTo("2.11.0");
    }