Soak the beans in plenty of water overnight. The next day, cook until soft, this takes 40-60 minutes, then mash the beans very finely.
Mix the flour, baking powder and salt together. Melt the white chocolate and mix well with the egg yolks, sugar, butter and the flavors. Beat the egg whites until stiff. Add the chocolate mixture to the flour mixture, stir briefly, then fold in the bean puree, egg whites and raspberries.
Put the dough in a springform pan, sprinkle with pistachios or almonds and bake in the preheated oven at 180 degrees for about 40 minutes.
Tastes very good still warm with a little whipped cream.
The raspberries can of course also be exchanged for other fruit, e.g., figs, mixed wild berries or apricots.