[Demonstration 1]

[Buggy Method]
@Test
public void testAccountBalanceZero() {
    Assert.assertEquals(true, acc.adjustBalance(0));
}

[Buggy Hunk]
Assert.assertEquals(true, acc.adjustBalance(0));

[Patch]
Assert.assertEquals(true, acc1.adjustBalance(0));

[Demonstration 2]

[Buggy Method]
public String getAttribute(String key, String defaultValue) throws Exception {
    String fullKey = PrefsPropsUtil.getString(companyId, key, defaultValue);
    String value = (String) (fromHeader ? request.getHeader(fullKey) : request.getAttribute(fullKey));
    System.out.println("Fetching " + fullKey + " from " + (fromHeader ? "headers" : "attrs") + " -> " + value);
    return reEncode ? reEncode(value) : value;
}

[Buggy Hunk]
System.out.println("Fetching " + fullKey + " from " + (fromHeader ? "headers" : "attrs") + " -> " + value);

[Patch]
_log.debug("Fetching " + fullKey + " from " + (fromHeader ? "headers" : "attrs") + " -> " + value);

[Demonstration 3]

[Buggy Method]
@Test
public void testOneField() {
    CSDField f = new CSDField() {

        @Override
        public String getCode() {
            return "code";
        }

        @Override
        public String getType() {
            return "type";
        }

        @Override
        public String getColumnName() {
            return "name";
        }

        @Override
        public boolean isOptional() {
            return false;
        }

        @Override
        public boolean validate(String value) {
            return true;
        }
    };
    CSDSchema s = new CSDSchema(Arrays.asList(f), true);
    Assert.assertEquals("(code)", s.getColumns());
    Assert.assertTrue(s.hasOptionalHeader());
    Assert.assertTrue(s.iterator().hasNext());
    Assert.assertEquals(f, s.iterator().next());
    Assert.assertEquals(1, s.size());
}

[Buggy Hunk]
CSDSchema s = new CSDSchema(Arrays.asList(f), true);

[Patch]
CSDSchema<CSDField> s = new CSDSchema<CSDField>(Arrays.asList(f), true);