Drain the beans on a sieve and, if necessary, cut them into small pieces. Cut the salami into fine strips. Peel the onion and cut into thin slices. Mix all ingredients in a bowl.
Mix the oil with the vinegar, pepper, salt and crushed garlic clove. Pour over the salad and let it steep until ready to eat.