resource.setInternalRar("resource-internalrar");
Connector connector = connectorFactory.createConnector();
Adminobject adminobject = connectorFactory.createAdminobject();
adminobject.setAdminobjectClass("resource-connector-adminobject-adminobjectclass");
adminobject.setAdminobjectInterface("resource-connector-adminobject-adminobjectinterface");
AdminobjectInstance adminobjectInstance = connectorFactory.createAdminobjectInstance();
adminobjectInstance.setMessageDestinationName("resource-connector-adminobject-instance-messagedestinationname");
ConfigPropertySetting configPropertySetting = connectorFactory.createConfigPropertySetting();
configPropertySetting.setName("resource-connector-adminobject-instance-name");
configPropertySetting.setValue("resource-connector-adminobject-instance-value");
adminobjectInstance.getConfigPropertySetting().add(configPropertySetting);
adminobject.getAdminobjectInstance().add(adminobjectInstance);
connector.getAdminobject().add(adminobject);
environment = deploymentFactory.createEnvironment();
artifact = deploymentFactory.createArtifact();
artifact.setGroupId("org.apache.geronimo.testsuite");