class ShouldHave extends BasicErrorMessageFactory {

  /**
   * Creates a new <code>{@link ShouldHave}</code>.
   * @param <T> guarantees that the type of the actual value and the generic type of the {@code Condition} are the same.
   * @param actual the actual value in the failed assertion.
   * @param condition the {@code Condition}.
   * @return the created {@code ErrorMessageFactory}.
   */
  public static <T> ErrorMessageFactory shouldHave(T actual, Condition<? super T> condition) {<FILL_FUNCTION_BODY>}

  private ShouldHave(Object actual, Condition<?> condition) {
    super("%nExpecting actual:%n  %s%nto have %s", actual, condition);
  }

  private <T> ShouldHave(T actual, Join<? super T> join) {
    super("%n" +
          "Expecting actual:%n" +
          "  %s%n" +
          // use concatenation to avoid the string to be double quoted later on
          "to have:%n" + join.conditionDescriptionWithStatus(actual),
          actual);
  }
}

    if (condition instanceof Join) return new ShouldHave(actual, (Join<? super T>) condition);
    return new ShouldHave(actual, condition);
  
<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