GeronimoSecurityBuilderImpl secBuilder = new GeronimoSecurityBuilderImpl(null, null, null);
secBuilder.doStart();
LoginConfigBuilder builder = new LoginConfigBuilder(new Jsr77Naming(), null);
XmlObject xmlObject = XmlBeansUtil.parse(text);
XmlCursor cursor = xmlObject.newCursor();
cursor.toFirstContentToken();
xmlObject = cursor.getObject();
HashMap<String, Artifact> locations = new HashMap<String, Artifact>();
locations.put(null, Artifact.create("test/foo/1.0/car"));
BundleContext bundleContext = new MockBundleContext(getClass().getClassLoader(), "", new HashMap<Artifact, ConfigurationData>(), locations);
DeploymentContext context = new DeploymentContext(new File("."), null, new Environment(Artifact.create("test/foo/1.0/car")), null, ConfigurationModuleType.SERVICE, new Jsr77Naming(), new MockConfigurationManager(), Collections.<Repository>emptySet(), bundleContext);