[Demonstration 1]

[Buggy Method]
public void changeParamObject(Integer testID) {
    Test test = (Test) HibernateUtil.get(Test.class, testID, getCurrentSession());
    paramObject = test.getParamObject();
}

[Buggy Hunk]
Test test = (Test) HibernateUtil.get(Test.class, testID, getCurrentSession());

[Patch]
Test test = (Test) HibernateUtil.get(Test.class, testID);

[Demonstration 2]

[Buggy Method]
@Test(groups = { "unit" }, expectedExceptions = InputIsEmptyException.class)
public void failedTest() throws InputIsEmptyException {
    Assert.assertTrue(false);
}

[Buggy Hunk]
Assert.assertTrue(false);

[Patch]
Assert.assertTrue(true);

[Demonstration 3]

[Buggy Method]
@Override
public QLSNode visit(StyledQuestion styledQuestion) {
    QBaseQuestionType formQuestionType = QLSHelper.getTypeForStyledQuestion(styledQuestion, formQuestions);
    if (formQuestionType != currentWidgetDeclaration.returnType() && formQuestionType != QBaseQuestionType.ALL) {
        errors.add(new WidgetTypeMismatchError(currentWidgetDeclaration, formQuestionType));
    }
    return null;
}

[Buggy Hunk]
if (formQuestionType != currentWidgetDeclaration.returnType() && formQuestionType != QBaseQuestionType.ALL)

[Patch]
if (formQuestionType != currentWidgetDeclaration.returnType())