Cook the rice and beans until moist and heated through. Meanwhile in a large skillet, add the onions and the garlic. Cook these until tender. Add the tomatoes, zucchini and oregano. Simmer, covered, for 5 minutes or until the vegetables are soft. Add the beans, rosemary, basil, salt and pepper, stirring occasionally until heated through. To serve spoon the mixture over rice.