private void doTest(String text) throws XmlException, DeploymentException {
GeronimoSecurityBuilderImpl secBuilder = new GeronimoSecurityBuilderImpl(null);
secBuilder.doStart();
LoginConfigBuilder builder = new LoginConfigBuilder(new Jsr77Naming(), null);
XmlObject xmlObject = XmlBeansUtil.parse(text);
XmlCursor cursor = xmlObject.newCursor();
cursor.toFirstContentToken();
xmlObject = cursor.getObject();
DeploymentContext context = new DeploymentContext(new File("."), null, new Environment(Artifact.create("test/foo/1.0/car")), null, ConfigurationModuleType.SERVICE, new Jsr77Naming(), new MockConfigurationManager(), Collections.emptySet());
AbstractName parentName = new AbstractName(URI.create("test/foo/1.0/car?name=parent,j2eeType=foo"));
builder.getReferences(xmlObject, context, parentName, getClass().getClassLoader());