You could use an iterator:
for (Iterator> it = testBene.entrySet().iterator(); it.hasNext();) {
Entry beneKeySet = it.next();
if (testDly.containsKey(beneKeySet.getKey())) {
for (Entry dlyKeySet : testDly.entrySet()) {
if ((dlyKeySet.getKey() == beneKeySet.getKey()) && dlyKeySet.getValue() == beneKeySet.getValue()) {
it.remove();
}
}
}
}