[Demonstration 1]

[Buggy Method]
@Test
public void parcelTest() throws Exception {
    Data testimiseks = new Data(false);
    PointOfInterest uus = new PointOfInterest(-5, new LatLng(755445, 1222123), "näideUnicode", "Lihtne näide, et kontrollida täpitähti", "http://i.imgur.com/CyDodpSr.jpg", "https://s3.eu-central-1.amazonaws.com/aken-ajalukku-media/x264_aac_faac.mp4");
    PointOfInterest teine = new PointOfInterest(-6, new LatLng(755445, 1222123), "näideUnicode", "Lihtne näide, et kontrollida täpitähti", "http://i.imgur.com/CyDodpSr.jpg", "https://s3.eu-central-1.amazonaws.com/aken-ajalukku-media/x264_aac_faac.mp4");
    ArrayList<Integer> pois = new ArrayList<>();
    pois.add(-5);
    pois.add(-6);
    ArrayList<PointOfInterest> nimekiri = new ArrayList<>();
    nimekiri.add(uus);
    nimekiri.add(teine);
    Journey teekond = new Journey(-4, pois, "Ameerika mäed", "Kohapealne menüü", nimekiri);
    ArrayList<Journey> konnad = new ArrayList<>();
    konnad.add(teekond);
    testimiseks.setPois(nimekiri);
    testimiseks.setJourneys(konnad);
    Parcel against = Parcel.obtain();
    testimiseks.writeToParcel(against, 0);
    against.setDataPosition(0);
    Data vastus = Data.CREATOR.createFromParcel(against);
    PointOfInterest Epoi = vastus.getPoiById(-5);
    PointOfInterest Tpoi = testimiseks.getPoiById(-5);
    assertEquals(Epoi.getId(), Tpoi.getId());
    assertEquals(Epoi.getDescription(), Tpoi.getDescription());
    assertEquals(Epoi.getImageUrl(), Tpoi.getImageUrl());
    assertEquals(Epoi.getLocation(), Tpoi.getLocation());
    assertEquals(Epoi.getMarker(), Tpoi.getMarker());
    Journey Konn = testimiseks.getJourneyById(-4);
    assertEquals(Konn.getPoiIdList(), teekond.getPoiIdList());
    assertEquals(Konn.getFirstPoi(), teekond.getFirstPoi());
}

[Buggy Hunk]
assertEquals(Epoi.getDescription(), Tpoi.getDescription());

[Patch]
assertEquals(Epoi.getDescription(null), Tpoi.getDescription(null));

[Demonstration 2]

[Buggy Method]
@Test(sequential = true, dependsOnMethods = { "checkProblemTypeAfterAddProblem" }, groups = { "CreateProblem" })
public void checkActivityAfterAddProblem() {
    ActivitiesDAO activitiesDAO = new ActivitiesDAO();
    int userID = usersDAO.findUserByEmail(Constant.SimpleUserUsername).getId();
    String activityTypeName = activitiesDAO.findByUserIdAndProblemID(userID, actualProblem.getId()).getActivityTypes().getName();
    Assert.assertEquals(activityTypeName, Constant.AddProblemActivityTypeName);
}

[Buggy Hunk]
Assert.assertEquals(activityTypeName, Constant.AddProblemActivityTypeName);

[Patch]
Assert.assertEquals(activityTypeName, addProblemActivityTypeName);

[Demonstration 3]

[Buggy Method]
public void GenerateFuture() {
    this.future = subJob.scheduleBuild2(subJob.getQuietPeriod(), new UpstreamCause((Run) multiJobBuild), actions.toArray(new Action[0]));
}

[Buggy Hunk]
actions.toArray(new Action[0]));

[Patch]
actions.toArray(new Action[actions.size()]));