### Question:
AllJsIframeVersioner implements Versioner { public UriStatus validate(Uri gadgetUri, String container, String value) { if (value == null || value.length() == 0) { return UriStatus.VALID_UNVERSIONED; } if (value.equals(allJsChecksum)) { return UriStatus.VALID_VERSIONED; } return UriStatus.INVALID_VERSION; } @Inject  AllJsIframeVersioner(FeatureRegistry registry); String version(Uri gadgetUri, String container); UriStatus validate(Uri gadgetUri, String container, String value);  }### Answer:
@Test public void validateNull() { assertEquals(UriStatus.VALID_UNVERSIONED, versioner.validate(GADGET_URI, CONTAINER, null)); }
@Test public void validateEmpty() { assertEquals(UriStatus.VALID_UNVERSIONED, versioner.validate(GADGET_URI, CONTAINER, "")); }
@Test public void validateMismatch() { assertEquals(UriStatus.INVALID_VERSION, versioner.validate(GADGET_URI, CONTAINER, featureChecksum + "-not")); }
@Test public void validateMatch() { assertEquals(UriStatus.VALID_VERSIONED, versioner.validate(GADGET_URI, CONTAINER, featureChecksum)); }