[Demonstration 1]

[Buggy Method]
@Override
public boolean startUp() throws IOException, InterruptedException {
    long start = System.currentTimeMillis();
    if (logger == null) {
        logger = taskListener.getLogger();
    }
    String script = build.getTestScriptPath() + "//genymotion_start.bat";
    if (Utils.isUnix()) {
        script = build.getTestScriptPath() + "//genymotion_start.sh";
    }
    List<String> args = new ArrayList<String>();
    args.add(task.getEmulator().getAvdName());
    Builder builder = this.getBuilder(script, args);
    boolean result = builder.perform(build, androidSdk, task.getEmulator(), context, taskListener, "Success");
    if (!result) {
        log(logger, String.format("Start the geny motion %s via '%s' failed.", task.getEmulator().getAvdName(), script));
        task.setStatus(STATUS.NOT_BUILT);
    } else {
        log(logger, String.format("Start the genymotion %s via '%s' scussfully.", task.getEmulator().getAvdName(), script));
        log(logger, String.format("Genymotion is ready for use (took %d seconds).", (System.currentTimeMillis() - start) / 1000));
        this.getContext().setSerial(getSerialForGenyMotion("genymotion_" + task.getEmulator().getAvdName()) + ".ini");
    }
    return result;
}

[Buggy Hunk]
this.getContext().setSerial(getSerialForGenyMotion("genymotion_" + task.getEmulator().getAvdName()) + ".ini");

[Patch]
this.getContext().setSerial(getSerialForGenyMotion("genymotion_" + task.getEmulator().getAvdName() + ".ini"));

[Demonstration 2]

[Buggy Method]
@Override
protected final Class<?> findClass(String name) throws ClassNotFoundException {
    System.out.println("Delegate Class: " + name);
    final Class<?> cls = this.delegator.findClass(null, name);
    if (cls == null) {
        throw new ClassNotFoundException(name);
    }
    return cls;
}

[Buggy Hunk]
System.out.println("Delegate Class: " + name);

[Patch]
LOG.trace("delegate.findClass({0})", name);

[Demonstration 3]

[Buggy Method]
@Test
String runTests(Class cls) {
    return null;
}

[Buggy Hunk]
String runTests(Class cls) {

[Patch]
static String runTests(Class cls) {