### Question:
DigestVerifierImpl implements DigestVerifier { @Override public boolean verify(String digestFromRequest, String body) { if (StringUtils.isBlank(digestFromRequest)) { return false; } return handleHashAlgorithm(digestFromRequest) .map(alg -> buildDigest(body, alg)) .map(dg -> digestFromRequest.equals(dg.getHeaderValue())) .orElse(false); }  @Override boolean verify(String digestFromRequest, String body);  }### Answer:
@Test void verify_success() { boolean actualResult = digestVerifier.verify(CORRECT_DIGEST, getBody()); assertThat(actualResult).isTrue(); }
@Test void verify_wrong_digest() { boolean actualResult = digestVerifier.verify(WRONG_DIGEST, getBody()); assertThat(actualResult).isFalse(); }
@Test void verify_null_digest() { boolean actualResult = digestVerifier.verify(null, getBody()); assertThat(actualResult).isFalse(); }
@Test void verify_wrong_algorithm() { boolean actualResult = digestVerifier.verify(WRONG_ALGORITHM_DIGEST, getBody()); assertThat(actualResult).isFalse(); }
@Test void verify_empty_algorithm() { boolean actualResult = digestVerifier.verify(EMPTY_ALGORITHM_DIGEST, getBody()); assertThat(actualResult).isFalse(); }