class ShouldHaveDigest extends BasicErrorMessageFactory {

  public static ErrorMessageFactory shouldHaveDigest(Path actualSource, DigestDiff diff) {
    return new ShouldHaveDigest(actualSource, diff);
  }

  public static ErrorMessageFactory shouldHaveDigest(File actualSource, DigestDiff diff) {
    return new ShouldHaveDigest(actualSource, diff);
  }

  public static ErrorMessageFactory shouldHaveDigest(InputStream actualSource, DigestDiff diff) {
    return new ShouldHaveDigest(actualSource, diff);
  }

  private ShouldHaveDigest(Path actualSource, DigestDiff diff) {
    super(errorMessage("Path", diff), actualSource, diff.getExpected(), diff.getActual());
  }

  private ShouldHaveDigest(File actualSource, DigestDiff diff) {
    super(errorMessage("File", diff), actualSource, diff.getExpected(), diff.getActual());
  }

  private ShouldHaveDigest(InputStream actualSource, DigestDiff diff) {
    super(errorMessage("InputStream", diff), actualSource, diff.getExpected(), diff.getActual());
  }

  private static String errorMessage(String actualType, DigestDiff diff) {<FILL_FUNCTION_BODY>}

}

    return "%nExpecting " + actualType + " %s " + diff.getDigestAlgorithm() + " digest to be:%n" +
           "  %s%n" +
           "but was:%n" +
           "  %s";
  
<methods>public transient void <init>(java.lang.String, java.lang.Object[]) ,public java.lang.String create(org.assertj.core.description.Description, org.assertj.core.presentation.Representation) ,public java.lang.String create(org.assertj.core.description.Description) ,public java.lang.String create() ,public boolean equals(java.lang.Object) ,public int hashCode() ,public java.lang.String toString() <variables>protected final non-sealed java.lang.Object[] arguments,protected final non-sealed java.lang.String format,org.assertj.core.error.MessageFormatter formatter