We run the @RestControllers as singletons. I would like to make sure (by JUnit-Test), that none of them has a class-based attribute. My idea is to go through the list of supplied controllers and check by reflection for the defined attributes. Rather than traversing through the project I would love to "ask" spring for such a list. Any suggestions? Or are there other ideas to enforce that class-variables are not used within a singleton?