Boil the green beans in salted water for 4 minutes until bright green, then transfer them to ice water and drain thoroughly.
Melt the butter in a large skillet over medium-high heat and cook the mushrooms and onion for 8 minutes until browned and dry.
Stir in the flour for 1 minute, whisk in the milk, broth, salt and pepper and simmer for 4 minutes until thickened.
Fold in the beans and 1 cup fried onions and spread the mixture in a 3-quart baking dish.
Bake at 375°F for 20 minutes, top with the remaining fried onions and bake for 5 minutes until crisp.