Test case for generating a simple bean from a repository