private void doTest(String text) throws XmlException, DeploymentException {
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);