class ShouldBeEqualByComparingOnlyGivenFields extends BasicErrorMessageFactory {

  /**
   * Creates a new <code>{@link ShouldBeEqualByComparingOnlyGivenFields}</code>.
   *
   *
   * @param actual the actual value in the failed assertion.
   * @param rejectedFields fields names not matching
   * @param rejectedValues fields values not matching
   * @param expectedValues expected fields values
   * @param acceptedFields fields on which is based the lenient equality
   * @return the created {@code ErrorMessageFactory}.
   */
  public static ErrorMessageFactory shouldBeEqualComparingOnlyGivenFields(Object actual, List<String> rejectedFields,
                                                                          List<Object> rejectedValues,
                                                                          List<Object> expectedValues,
                                                                          List<String> acceptedFields) {<FILL_FUNCTION_BODY>}

  private ShouldBeEqualByComparingOnlyGivenFields(Object actual, List<String> rejectedFields, List<Object> rejectedValues,
                                                  List<Object> expectedValue, List<String> acceptedFields) {
    super("%nExpecting values:%n"
          + "  %s%n"
          + "in fields:%n"
          + "  %s%n"
          + "but were:%n"
          + "  %s%n"
          + "in %s.%n"
          + "Comparison was performed on fields:%n  %s",
          expectedValue, rejectedFields, rejectedValues, actual, acceptedFields);
  }

  private ShouldBeEqualByComparingOnlyGivenFields(Object actual, String rejectedField, Object rejectedValue, Object expectedValue,
                                                  List<String> acceptedFields) {
    super("%nExpecting value %s in field %s but was %s in %s", expectedValue, rejectedField, rejectedValue, actual,
          acceptedFields);
  }

}

    if (rejectedFields.size() == 1) {
      return new ShouldBeEqualByComparingOnlyGivenFields(actual, rejectedFields.get(0), rejectedValues.get(0),
                                                         expectedValues.get(0),
                                                         acceptedFields);
    }
    return new ShouldBeEqualByComparingOnlyGivenFields(actual, rejectedFields, rejectedValues, expectedValues,
                                                       acceptedFields);
  
<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