[Demonstration 1]

[Buggy Method]
@Override
public boolean equals(Object obj) {
    return (obj == this) || (obj instanceof BaseSizeToken);
}

[Buggy Hunk]
return (obj == this) || (obj instanceof BaseSizeToken);

[Patch]
return (obj == this) || (obj instanceof UseUntrainedToken);

[Demonstration 2]

[Buggy Method]
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (obj == null) {
        return false;
    }
    if (getClass() != obj.getClass()) {
        return false;
    }
    ObjectPOJO other = (ObjectPOJO) obj;
    if (boolExemplo != other.boolExemplo) {
        return false;
    }
    if (booleanExemplo == null) {
        if (other.booleanExemplo != null) {
            return false;
        }
    } else if (!booleanExemplo.equals(other.booleanExemplo)) {
        return false;
    }
    if (doubleExemplo == null) {
        if (other.doubleExemplo != null) {
            return false;
        }
    } else if (!doubleExemplo.equals(other.doubleExemplo)) {
        return false;
    }
    if (Double.doubleToLongBits(doubleExemplo2) != Double.doubleToLongBits(other.doubleExemplo2)) {
        return false;
    }
    if (Float.floatToIntBits(floatExemplo) != Float.floatToIntBits(other.floatExemplo)) {
        return false;
    }
    if (floatExemplo2 == null) {
        if (other.floatExemplo2 != null) {
            return false;
        }
    } else if (!floatExemplo2.equals(other.floatExemplo2)) {
        return false;
    }
    if (intExemplo != other.intExemplo) {
        return false;
    }
    if (integerExemplo == null) {
        if (other.integerExemplo != null) {
            return false;
        }
    } else if (!integerExemplo.equals(other.integerExemplo)) {
        return false;
    }
    if (longExemplo == null) {
        if (other.longExemplo != null) {
            return false;
        }
    } else if (!longExemplo.equals(other.longExemplo)) {
        return false;
    }
    if (objetoExemplo == null) {
        if (other.objetoExemplo != null) {
            return false;
        }
    } else if (!objetoExemplo.equals(other.objetoExemplo)) {
        return false;
    }
    if (stringExemplo == null) {
        if (other.stringExemplo != null) {
            return false;
        }
    } else if (!stringExemplo.equals(other.stringExemplo)) {
        return false;
    }
    return true;
}

[Buggy Hunk]
ObjectPOJO other = (ObjectPOJO) obj;

[Patch]
ObjectDTO other = (ObjectDTO) obj;

[Demonstration 3]

[Buggy Method]
@Test
public void postCouponTest() throws Exception {
    mockMvc.perform(MockMvcRequestBuilders.post("/checkout/coupon").param("couponCode", "abcd")).andDo(print()).andExpect(status().is3xxRedirection()).andExpect(redirectedUrl("shipping"));
}

[Buggy Hunk]
mockMvc.perform(MockMvcRequestBuilders.post("/checkout/coupon").param("couponCode", "abcd")).andDo(print())

[Patch]
mockMvc.perform(post("/checkout/coupon").param("couponCode", "abcd")).andDo(print())