ConnectorDCB connector = (ConnectorDCB) dcbRoot.getDConfigBean(root.getChildBean(dcbRoot.getXpaths()[0])[0]);
assertNotNull(connector);
assertNull(connector.getEnvironment());
EnvironmentData environment = new EnvironmentData();
connector.setEnvironment(environment);
Artifact configId = new Artifact();
environment.setConfigId(configId);
assertNull(configId.getArtifactId());
assertNull(configId.getGroupId());
assertNull(configId.getType());
assertNull(configId.getVersion());
configId.setGroupId("test");
configId.setArtifactId("product");
configId.setType("rar");
configId.setVersion("1.0");
Artifact parent = new Artifact();
Artifact dependency = new Artifact();
environment.setDependencies(new Artifact[]{parent, dependency});
assertNull(parent.getArtifactId());
assertNull(parent.getGroupId());
assertNull(parent.getType());
assertNull(parent.getVersion());
assertNull(dependency.getArtifactId());
assertNull(dependency.getGroupId());
assertNull(dependency.getType());
assertNull(dependency.getVersion());
parent.setGroupId("org.apache.geronimo.configs");
parent.setArtifactId("j2ee-server");
parent.setType("car");
assertNull(parent.getVersion());
dependency.setGroupId("postgresql");
dependency.setArtifactId("postgresql-8.0");
dependency.setType("jar");
dependency.setVersion("313.jdbc3");
// todo: Try the /connector/environment/hidden-classes element
// todo: Try the /connector/environment/non-overridable-classes element
// Try the /connector/resourceadapter element
assertNotNull(connector.getResourceAdapter());
assertEquals(1, connector.getResourceAdapter().length);