bundleContext = new MockBundleContext(getClass().getClassLoader(), "", null, null);
tmpbasedir = File.createTempFile("car", "tmp");
tmpbasedir.delete();
tmpbasedir.mkdirs();
environment.setConfigId(configID);
Jsr77Naming naming = new Jsr77Naming();
ArtifactManager artifactManager = new DefaultArtifactManager();
ArtifactResolver artifactResolver = new DefaultArtifactResolver(artifactManager, null);
ConfigurationManager configurationManager = new SimpleConfigurationManager(Collections.EMPTY_SET, artifactResolver, Collections.EMPTY_SET, bundleContext);
AbstractName moduleName = naming.createRootName(configID, "testejb", NameFactory.EJB_MODULE);
context = new DeploymentContext(tmpbasedir, null, environment, moduleName, ConfigurationModuleType.CAR, naming, configurationManager, bundleContext);
File moduleLocation = new File(tmpbasedir, "ejb");
moduleLocation.mkdirs();
module = new EJBModule(true, moduleName, null, environment, new UnpackedJarFile(moduleLocation), "ejb", null, null, null, null, null);