1. Bring water and 2 teaspoons salt to a boil in a large pan.
2. Add in beans; cook 2-3 minutes or until crisp-tender; drain.
3. Melt butter in a pan over medium heat; add in garlic and shallots; cook 4 minutes or until lightly browned, stirring occasionally.
4. Add 1/2 teaspoon salt, beans, rosemary, and pepper; cook 4 minutes or until thoroughly heated, stirring occasionally.