[Demonstration 1]

[Buggy Method]
@Test
public void shouldBeAbleToDeserializeSimplePerson() throws IOException {
    // given
    ObjectMapper objectMapper = new ObjectMapper();
    objectMapper.registerModule(new ParameterNamesModule());
    // when
    SimplePerson actual = objectMapper.readValue("{\"name\":\"joe\"}", SimplePerson.class);
    // then
    SimplePerson expected = new SimplePerson("joe");
    then(actual).isEqualToComparingFieldByField(expected);
}

[Buggy Hunk]
objectMapper.registerModule(new ParameterNamesModule());

[Patch]
objectMapper.registerModule(new ParameterNamesModule(JsonCreator.Mode.PROPERTIES));

[Demonstration 2]

[Buggy Method]
public void updateExpectations(String c, String v) {
    if (c == null) {
        if (stakeholders.size() > 0 && kpas.size() > 0) {
            expHelpLabel.setText("Select a stakeholder");
            expStkTree.setDisable(false);
        } else if (stakeholders.size() == 0 && kpas.size() > 0) {
            expHelpLabel.setText("Add stakeholders before entering this step");
            expStkTree.setDisable(true);
        } else if (stakeholders.size() > 0 && kpas.size() == 0) {
            expHelpLabel.setText("Add key performance areas before entering this step");
            expStkTree.setDisable(true);
        } else {
            expHelpLabel.setText("Add stakeholders and key performance areas before entering this step");
            expStkTree.setDisable(true);
        }
        expWeightField.setText("");
        expKpaTree.setDisable(true);
        expWeightField.setDisable(true);
        expDescArea.setDisable(true);
        weightValueLabel.setText(" ");
    } else if (v == null) {
        expHelpLabel.setText("Select a corresponding key performance area");
        expWeightField.setText("");
        expKpaTree.setDisable(false);
        expWeightField.setDisable(true);
        expDescArea.setDisable(true);
        Stakeholder choosenStk = stakeholders.stream().filter(stk -> c.equals(stk.getName())).findFirst().orElse(null);
        weightValueLabel.setText("Remaining weight to distribute: " + choosenStk.getMaxValue());
        //updateExpKpaVP(c);
    } else {
        Expectation expectation = expectations.stream().filter(exp -> c.equals(exp.getStakeholder().getName()) && v.equals(exp.getKpa().getName())).findFirst().orElse(newExpectation(c, v));
        expWeightField.setText(null);
        expWeightField.setPromptText(expectation.getWeight() + "");
        expDescArea.setText(expectation.getDescription());
        expKpaTree.setDisable(false);
        expWeightField.setDisable(false);
        expDescArea.setDisable(false);
        expHelpLabel.setText(c + " expectation regarding " + v);
        Stakeholder choosenStk = stakeholders.stream().filter(stk -> c.equals(stk.getName())).findFirst().orElse(null);
        weightValueLabel.setText("Remaining weight to distribute: " + choosenStk.getMaxValue());
        //updateExpKpaVP(c);
    }
}

[Buggy Hunk]
expWeightField.setPromptText(expectation.getWeight() + "");

[Patch]
expWeightField.setText(expectation.getWeight() + "");

[Demonstration 3]

[Buggy Method]
@PostMapping
public ResponseEntity<ProductInfoDto> create(ProductInfoDto productInfo) {
    ProductInfoDto productInfoDto = productService.create(productInfo);
    return ResponseEntity.ok(productInfoDto);
}

[Buggy Hunk]
public ResponseEntity<ProductInfoDto> create(ProductInfoDto productInfo) {

[Patch]
public ResponseEntity<ProductInfoDto> create(@RequestBody ProductInfoDto productInfo) {