### Question:
VersionUtils { @Nullable static String getVersionFromPackage(Class<?> clazz) { Package pkg = clazz.getPackage(); if (pkg != null) { return pkg.getImplementationVersion(); } return null; } private  VersionUtils(); @Nullable static String getAgentVersion(); @Nullable static String getVersion(Class<?> clazz, String groupId, String artifactId); @Nullable static String getManifestEntry(@Nullable File jarFile, String manifestAttribute);  }### Answer:
@Test void testGetVersionFromPackage() { assertThat(VersionUtils.getVersionFromPackage(Test.class)).isNotEmpty(); assertThat(VersionUtils.getVersionFromPackage(Test.class)) .isEqualTo(VersionUtils.getVersion(Test.class, "org.junit.jupiter", "junit-jupiter-api")); assertThat(VersionUtils.getManifestEntry(new File(Test.class.getProtectionDomain().getCodeSource().getLocation().getFile()), "Implementation-Version")) .isEqualTo(VersionUtils.getVersionFromPackage(Test.class)); assertThat(VersionUtils.getVersion(Test.class, "org.junit.jupiter", "junit-jupiter-api")) .isSameAs(VersionUtils.getVersion(Test.class, "org.junit.jupiter", "junit-jupiter-api")); }