I don't know whether this is the right forum. For testing a bean, I want to mock some other beans that are used by the beans under test. Can this be done with AOP? Or is there a better way of mocking beans? Has anybody some experiences, best practices, tutorials, howtos, links, whatever he can share?