This is a demo how to: Create a custom annotation with an array field to keep supported contexts of a bean Then retrieving beans that support a specific context And there is also a parameterized JUnit5 test.