I encountered this dish on a vacation to Costa Rica. They served it all over the country at breakfast. There is a sauce that they put on it that is very good. It is called Lizano. You can find it in a Latin American grocery.
Fresh black beans are the best, but if you can't find them you can use either dried or canned. The recipe is good either way. If you use dried, follow the instructions on the bag to soak and cook them. If you use fresh beans, then place into saucepan, add water to one inch over the beans, salt them, and bring to a boil. Cover the pan with a lid, and reduce heat to a simmer until beans are soft (about 3 hours).
Finely chop the cilantro, onion, and sweet pepper.
Add 2 tablespoons oil to a large frying pan or wok. Add the rice, cilantro, onion, and sweet pepper and saute over medium flame for about 5 minutes. Add chicken broth, and saute for another few minutes until flavor absorbs into rice. Add the beans, saute together for a few minutes, and add fresh cilantro, and turn off heat.