* Test that the assertion passes if the interface is not
* in the direct or indirect list of extended interfaces.
*/
public void testInterfaceExtendsOtherInterfaces() {
DescriptionElement descEl = factory.newDescription();
Description descComp = descEl.toComponent();
descEl.setTargetNamespace(URI.create("http://testnamespace"));
// Create an interface, set it to extend to other interfaces and have
// one of those interfaces extend a fourth interface.
InterfaceElement interfac = descEl.addInterfaceElement();
interfac.setName(new NCName("name1"));
InterfaceElement interfac2 = descEl.addInterfaceElement();
interfac2.setName(new NCName("name2"));
interfac.addExtendedInterfaceName(interfac2.getName());
InterfaceElement interfac3 = descEl.addInterfaceElement();
interfac3.setName(new NCName("name3"));
interfac.addExtendedInterfaceName(interfac3.getName());
InterfaceElement interfac4 = descEl.addInterfaceElement();
interfac4.setName(new NCName("name4"));
interfac2.addExtendedInterfaceName(interfac4.getName());
// init Interface's ref to its Description, needed for interface extension.
descComp.getInterfaces();
try {
assertion.validate(interfac, wodenContext);
} catch(WSDLException e){
fail("Assertion Interface1009 threw a WSDLException.");
}