[Demonstration 1]

[Buggy Method]
public static ServerPresentationModel create(String id, List<ServerAttribute> attributes, ServerModelStore serverModelStore, String presentationModelType) {
    return new GServerPresentationModel(id, attributes, serverModelStore);
}

[Buggy Hunk]
return new GServerPresentationModel(id, attributes, serverModelStore);

[Patch]
return new GServerPresentationModel(id, attributes, serverModelStore, presentationModelType);

[Demonstration 2]

[Buggy Method]
private Image getMap(String caption, final String file, final boolean add) {
    File sourceFile;
    if (getClass().getResource(file) != null) {
        sourceFile = new File(getClass().getResource(file).getFile());
    } else {
        sourceFile = new File(file);
    }
    Image map = new Image(caption, new FileResource(sourceFile));
    map.addClickListener(new MouseEvents.ClickListener() {

        @Override
        public void click(MouseEvents.ClickEvent clickEvent) {
            List<Line> lines = new ImageToLines().getLines(file);
            if (!mapParam.equals("empty")) {
                List<Line> lineList = mapLines.get(mapParam);
                if (!add) {
                    lineList.clear();
                }
                lineList.addAll(lines);
                Broadcaster.broadcast(mapParam, "lines", null);
            }
            if (add) {
                DemoUI.this.visibilityMap.addLines(lines);
            } else {
                DemoUI.this.visibilityMap.setLines(lines);
            }
        }
    });
    return map;
}

[Buggy Hunk]
Broadcaster.broadcast(mapParam, "lines", null);

[Patch]
Broadcaster.broadcastPointUpdate(mapParam, "lines", null);

[Demonstration 3]

[Buggy Method]
@Test
public void createNodeInTransactionAndRollbackTest() {
    // given
    Session session = sessionPool.createSession();
    session.setTransactionManager(transactionManager);
    Transaction tran1 = session.beginTransaction();
    TransactionalGraphService transactionalGraphService = new TransactionalGraphService();
    // when
    transactionalGraphService.context(tran1).createNode(new Label("Person"), null);
    transactionalGraphService.context(tran1).rollback();
    // then
    assertThat(transactionalGraphService.getAllNodes()).isEmpty();
}

[Buggy Hunk]
assertThat(transactionalGraphService.getAllNodes()).isEmpty();

[Patch]
assertThat(transactionalGraphService.getAllPersistentNodes()).isEmpty();