[Demonstration 1]

[Buggy Method]
public static Map<String, SupervisorDetails> genSupervisors(int numSup, int numPorts, int start, Map resourceMap) {
    Map<String, SupervisorDetails> retList = new HashMap<String, SupervisorDetails>();
    for (int i = start; i < numSup + start; i++) {
        List<Number> ports = new LinkedList<Number>();
        for (int j = 0; j < numPorts; j++) {
            ports.add(j);
        }
        SupervisorDetails sup = new SupervisorDetails("sup-" + i, "host-" + i, null, ports, new HashMap<>(resourceMap));
        retList.put(sup.getId(), sup);
    }
    return retList;
}

[Buggy Hunk]
SupervisorDetails sup = new SupervisorDetails("sup-" + i, "host-" + i, null, ports, new HashMap<>(resourceMap));

[Patch]
SupervisorDetails sup = new SupervisorDetails("sup-" + i, "host-" + i, null, ports, new HashMap<String, Double>(resourceMap));

[Demonstration 2]

[Buggy Method]
@Override
public boolean equals(Object o) {
    if (!(o instanceof MultiMap))
        return false;
    @SuppressWarnings("unchecked")
    MultiMap<K, V> mm = (MultiMap<K, V>) o;
    if (!keySet().equals(mm.keySet()))
        return false;
    for (Map.Entry<K, Map<V, V>> e : m.entrySet()) {
        Map<V, V> s = e.getValue();
        if (!s.equals(mm.get(e.getKey())))
            return false;
    }
    return true;
}

[Buggy Hunk]
for (Map.Entry<K, Map<V,V>> e : m.entrySet()) {

[Patch]
for (Map.Entry<K, ConcurrentMap<V,V>> e : m.entrySet()) {

[Demonstration 3]

[Buggy Method]
@FXML
public void expExpTreeViewOnClick(Event event) {
    TreeItem c = (TreeItem) expStkTree.getSelectionModel().getSelectedItem();
    TreeItem v = (TreeItem) expKpaTree.getSelectionModel().getSelectedItem();
    UpdateExpectations(c.getValue().toString(), v.getValue().toString());
}

[Buggy Hunk]
UpdateExpectations(c.getValue().toString(), v.getValue().toString());

[Patch]
updateExpectations(c.getValue().toString(), v.getValue().toString());