// Install the test instance itself into MC (so injections may be honored)
final BeanMetaDataBuilder bmdb = BeanMetaDataBuilderFactory.createBuilder(BIND_NAME_TEST,
testCase.getClass().getName()).setAccessMode(BeanAccessMode.ALL);
try
{
controller.install(bmdb.getBeanMetaData(), testCase);
context.getParentContext().register(BeforeUnDeploy.class, new TestCaseUnInstaller());
}
catch (final Throwable e)
{
throw new RuntimeException("Could not enrich " + testCase + " by installing the instance into MC", e);