}
}
private BeanContext createDeployment(final Class<?> testClass) {
try {
return new BeanContext(null, new IvmContext(), new ModuleContext("", null, "", new AppContext("", SystemInstance.get(), testClass.getClassLoader(), new IvmContext(), new IvmContext(), false), new IvmContext(), null), testClass, null, null, null, null, null, null, null, null, null, BeanType.MANAGED, false);
} catch (final SystemException e) {
throw new IllegalStateException(e);
}
}