[Demonstration 1]

[Buggy Method]
@Test
public void testGetSolutionById() throws Exception {
    int id = 11;
    given().when().port(this.port).get(route + "/" + id).then().assertThat().statusCode(200);
}

[Buggy Hunk]
.statusCode(200);

[Patch]
.statusCode(HttpStatus.SC_NOT_FOUND);

[Demonstration 2]

[Buggy Method]
@Override
public void init(Router router) {
    router.GET().route("/").with(ApplicationController.class, "index");
    router.POST().route("/").with(ApplicationController.class, "index");
    router.GET().route("/reg").with(ApplicationController.class, "reg");
    router.POST().route("/reg").with(ApplicationController.class, "reg");
    router.GET().route("/LoggedIn").with(PlayController.class, "index");
    router.GET().route("/LoggedIn/hosted").with(PlayController.class, "hostedSpec");
    router.GET().route("/LoggedIn/hosted/{hostNum}").with(PlayController.class, "hosted");
    router.GET().route("/LoggedIn/joinGame/{hostName}").with(PlayController.class, "join");
    //router.GET().route("/test").with(AsyncController.class, "joinpart");
    router.GET().route("/test").with(AsyncController.class, "hostedgames");
    router.GET().route("/game").with(PlayController.class, "game");
    router.GET().route("/hand").with(PlayController.class, "play");
    router.GET().route("/history").with(PlayController.class, "history");
    ///////////////////////////////////////////////////////////////////////
    // Assets (pictures / javascript)
    ///////////////////////////////////////////////////////////////////////
    router.GET().route("/assets/webjars/{fileName: .*}").with(AssetsController.class, "serveWebJars");
    router.GET().route("/assets/{fileName: .*}").with(AssetsController.class, "serveStatic");
    ///////////////////////////////////////////////////////////////////////
    // Index / Catchall shows index page
    ///////////////////////////////////////////////////////////////////////
    router.GET().route("/.*").with(ApplicationController.class, "index");
}

[Buggy Hunk]
router.GET().route("/test").with(AsyncController.class, "hostedgames");

[Patch]
router.GET().route("/test").with(PlayController.class, "hostedgames");

[Demonstration 3]

[Buggy Method]
@Test
public void testCloseEventWillDeregisterOrder() {
    resetCallBackDetections();
    assertCloseEventsWillDeregisterOrder(OrderEvent.CLOSE_OK);
}

[Buggy Hunk]
assertCloseEventsWillDeregisterOrder(OrderEvent.CLOSE_OK);

[Patch]
assertEndOfOrderEventsWillDeregisterOrder(OrderEvent.CLOSE_OK);