### Question:
SaltBootstrapFingerprintVersionChecker { public boolean isFingerprintingSupported(Json image) { if (image == null) { LOGGER.info("Image is null, couldn't verify salt-bootstrap version"); return false; } else { try { Image instanceImage = image.get(Image.class); Map<String, String> packageVersions = instanceImage.getPackageVersions(); if (packageVersions != null) { String saltBootstrapVersion = packageVersions.getOrDefault(PackageVersionChecker.SALT_BOOTSTRAP, "0.0.0"); Versioned currentVersion = () -> StringUtils.substringBefore(saltBootstrapVersion, "-"); LOGGER.debug("Saltboot version in image: {}", currentVersion.getVersion()); return -1 < new VersionComparator().compare(currentVersion, MIN_VERSION); } else { LOGGER.info("PackageVersions is null in image {} {}", instanceImage.getImageId(), instanceImage.getImageName()); return false; } } catch (IOException e) { LOGGER.warn("Couldn't parse image", e); return false; } } }  boolean isFingerprintingSupported(Json image);  }### Answer:
@Test public void testFingerPrintSupported() { assertTrue(underTest.isFingerprintingSupported(getJsonImage("0.13.2"))); assertTrue(underTest.isFingerprintingSupported(getJsonImage("0.13.2-134"))); assertTrue(underTest.isFingerprintingSupported(getJsonImage("0.13.3"))); assertTrue(underTest.isFingerprintingSupported(getJsonImage("0.13.3-3245"))); assertTrue(underTest.isFingerprintingSupported(getJsonImage("0.14"))); assertTrue(underTest.isFingerprintingSupported(getJsonImage("0.14.0"))); assertTrue(underTest.isFingerprintingSupported(getJsonImage("1.0.0"))); }
@Test public void testFingerPrintNotSupported() { assertFalse(underTest.isFingerprintingSupported(getJsonImage("0.13.1"))); assertFalse(underTest.isFingerprintingSupported(getJsonImage("0.13.0"))); assertFalse(underTest.isFingerprintingSupported(getJsonImage("0.13.1.1"))); assertFalse(underTest.isFingerprintingSupported(getJsonImage("0.13.1-134"))); assertFalse(underTest.isFingerprintingSupported(getJsonImage("0.12.3"))); assertFalse(underTest.isFingerprintingSupported(getJsonImage("0.12.3-3245"))); }
@Test public void testNullImage() { assertFalse(underTest.isFingerprintingSupported(null)); }
@Test public void testNoPackageVersionMap() { Image image = new Image(null, null, null, null, null, null, null, null); assertFalse(underTest.isFingerprintingSupported(new Json(image))); }
@Test public void testNoPackageVersionForSb() { Image image = new Image(null, null, null, null, null, null, null, Map.of()); assertFalse(underTest.isFingerprintingSupported(new Json(image))); }