[Demonstration 1]

[Buggy Method]
@Test
public void processEngineAvailable() throws Exception {
    assertNotNull(processEngine);
    assertEquals(BpmPlatform.getProcessEngineService().getProcessEngine(environment.getProperty("spring.application.name")), processEngine);
}

[Buggy Hunk]
assertEquals(BpmPlatform.getProcessEngineService().getProcessEngine(environment.getProperty("spring.application.name")), processEngine);

[Patch]
assertEquals(BpmPlatform.getProcessEngineService().getProcessEngine("default"), processEngine);

[Demonstration 2]

[Buggy Method]
public Card draw() {
    Card drawn = deck.remove(0);
    if (deck.get(0) == null) {
        populate(deck);
        shuffle(deck);
    }
    return drawn;
}

[Buggy Hunk]
if (deck.get(0) == null){

[Patch]
if (deck.size() == 0){

[Demonstration 3]

[Buggy Method]
@Override
public MapPropertySource locate(Environment environment) {
    if (environment instanceof ConfigurableEnvironment) {
        ConfigurableEnvironment env = (ConfigurableEnvironment) environment;
        String name = getApplicationName(environment, properties);
        String namespace = getApplicationNamespace(client, env, properties);
        return new ConfigMapopertySource(client, name, namespace, env.getActiveProfiles());
    }
    return null;
}

[Buggy Hunk]
return new ConfigMapopertySource(client, name, namespace, env.getActiveProfiles());

[Patch]
return new ConfigMapPropertySource(client, name, namespace, env.getActiveProfiles());