assertEquals("department", group.getName());
List<XmlSchemaAttributeGroupMember> attributes = group.getAttributes();
assertNotNull(attributes);
assertEquals(2, attributes.size());
for (Iterator<XmlSchemaAttributeGroupMember> j = attributes.iterator(); j.hasNext();) {
XmlSchemaAttribute obj2 = (XmlSchemaAttribute)j.next();
String name = obj2.getName();
if ("id".equals(name)) {
assertEquals(new QName("http://soapinterop.org/types", "id"), obj2.getQName());
assertEquals(new QName("http://www.w3.org/2001/XMLSchema", "integer"), obj2
.getSchemaTypeName());
} else if ("name".equals(name)) {
assertEquals(new QName("http://soapinterop.org/types", "name"), obj2.getQName());
assertEquals(new QName("http://www.w3.org/2001/XMLSchema", "string"), obj2
.getSchemaTypeName());
} else {
fail("The name \"" + name + "\" should not have been found " + "for an attribute.");
}