Both JUnit(Runner.createTest()) and TestNG(ObjectFactory) has support for delegating the TestCase instance creation to 3. party.
We could use this to ie:
- Lookup the TestCase as a EJB 3.1 (can we guarantee a new instance?)
- Lookup the TestCase in a BeanManager
In these cases it might remove the need for TestEnricher.enrich()