Is it possible to use two anonymous classes for this? It might be more clear (imo) and we can avoid adding enums to the Bird model. And if someone changes the Book class in the future this test will still work.