Canned black beans are already cooked and can be tossed directly into the salsa. If you're using raw black beans, you will need to soak them overnight and cook them. To do this, place soaked beans in a large pot of water over high heat. Once the water comes to a boil, bring it down to a simmer and cook black beans for about an hour or until they are easily pierced with a fork.