Step 1 In a large pot, bring 2 quarts of water, the beans and the bay leaves to a boil. Turn off the heat and allow the beans to soak for an hour. Drain the beans, rinse under cool water and return them and the bay leaves to the pot. Cover with 2 quarts of fresh water and bring back to a boil. Simmer gently, uncovered, until the beans are tender but not mushy, about 1 hour. Add additional water as necessary to keep the beans covered while cooking.
Step 2 Meanwhile, put the shallot, garlic, olive oil and rosemary in a small saucepan over low heat until the oil just begins to bubble around the edges. Immediately turn off the heat and allow to steep, off the heat, while the beans cook.
Step 3When the beans are done, drain them, discarding the bay leaves. Place the beans in a large bowl. Add the shallot-garlic-rosemary oil, salt and pepper while the beans are still warm and allow to cool, covered. When they're cool, add the parsley. You can serve them immediately, or refrigerate overnight.