[Demonstration 1]

[Buggy Method]
@Check("any")
public static void close(java.lang.Long id) {
    Milestone entity = Milestone.findById(id);
    notFoundIfNull(entity);
    entity.isOpen = false;
    entity.save();
    flash.success(Messages.get("scaffold.updated", "Milestone"));
    Projects.show(entity.Project.id);
}

[Buggy Hunk]
Projects.show(entity.Project.id);

[Patch]
show(id);

[Demonstration 2]

[Buggy Method]
@Override
protected void configure(HttpSecurity http) throws Exception {
    http.antMatcher("/**").authorizeRequests().antMatchers("/", "/*bundle.js**", "/*.jpg", "/*.jpeg", "/*.css", "/**/*.png").permitAll().anyRequest().authenticated().and().exceptionHandling().authenticationEntryPoint(new LoginUrlAuthenticationEntryPoint("/")).and().logout().logoutSuccessUrl("/").permitAll().and().csrf().csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse()).and().addFilterBefore(ssoFilter(), BasicAuthenticationFilter.class);
}

[Buggy Hunk]
.antMatchers("/", "/*bundle.js**", "/*.jpg", "/*.jpeg", "/*.css", "/**/*.png")

[Patch]
.antMatchers("/", "/*bundle.js**", "/*.jpg", "/*.jpeg", "/*.css", "/**/*.png", "/assets/**")

[Demonstration 3]

[Buggy Method]
@Test
public void generateReport_ValidClientGiven_ShouldSendReport() {
    // Set Up
    ClientResource.build().headers(getHeader()).email(itTestEmail).isAdmin(true).create();
    // Do Test
    given().headers(getHeader()).when().get("/api/v1/clients/report").then().statusCode(HttpStatus.OK.value());
}

[Buggy Hunk]
ClientResource.build().headers(getHeader()).email(itTestEmail).isAdmin(true).create();

[Patch]
ClientResource.build().headers(getHeader()).emailRecipient(itTestEmail).isAdmin(true).create();