}
public void testGetAttributeDefs() throws Exception {
Set<DefDescriptor<InterfaceDef>> extendsIntf = new HashSet<>();
extendsIntf.add(vendor.makeInterfaceDefDescriptor("test:testinterfaceparent"));
InterfaceDef id = vendor.makeInterfaceDef(extendsIntf);
Map<DefDescriptor<AttributeDef>, AttributeDef> attributes = id.getAttributeDefs();
assertEquals(2, attributes.size());
assertTrue("Attribute from parent should be in the map",
attributes.containsKey(DefDescriptorImpl.getInstance("mystring", AttributeDef.class)));
assertTrue("Attribute from child should be in the map",
attributes.containsKey(DefDescriptorImpl.getInstance(vendor.getAttributeName(), AttributeDef.class)));