[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;
    SandboxGraphElement other = (SandboxGraphElement) obj;
    if (address == null) {
        if (other.address != null)
            return false;
    } else if (!address.equals(other.address))
        return false;
    if (attributes == null) {
        if (other.attributes != null)
            return false;
    } else if (!attributes.equals(other.attributes))
        return false;
    if (mirror != other.mirror)
        return false;
    if (tags == null) {
        if (other.tags != null)
            return false;
    } else if (!tags.equals(other.tags))
        return false;
    return true;
}

[Buggy Hunk]
if (mirror != other.mirror)

[Patch]
if (isMirror() != other.isMirror())

[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())