Bring the beans to the boil in the water and simmer for 40 minutes. Heat the oil and cook the onions and garlic until soft. Stir in the beans, lemon juice and zest and blend to a rough purée. Stir in the capers, parsley and Ricotta. Place in a mould and chill for several hours. Turn out and serve.