class ShouldHaveFragment extends BasicErrorMessageFactory {
  public static ErrorMessageFactory shouldHaveFragment(URI actual, String expectedFragment) {<FILL_FUNCTION_BODY>}

  private ShouldHaveFragment(URI actual, String expectedFragment) {
    super("%nExpecting fragment of%n  <%s>%nto be:%n  <%s>%nbut was:%n  <%s>", actual, expectedFragment,
          actual.getFragment());
  }

  private ShouldHaveFragment(URI actual) {
    super("%nExpecting URI:%n  <%s>%nnot to have a fragment but had:%n  <%s>", actual, actual.getFragment());
  }

}

    return expectedFragment == null ? new ShouldHaveFragment(actual) : new ShouldHaveFragment(actual, expectedFragment);
  
<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