@Override
    public void importFrom(Import theImport, String sourceSystemId) {
        this.namespace = theImport.getNamespace() == null ? "" : theImport.getNamespace() + ":";
        this.importFrom(theImport.getLocation());
    }
@Test
    public void testImportInheritedElement() throws Exception {
        URL url = ReflectUtil.getResource("org/flowable/engine/impl/webservice/inherited-elements-in-types.wsdl");
        assertThat(url).isNotNull();
        importer.importFrom(url.toString());

        List<StructureDefinition> structures = sortStructures();
        assertThat(structures).hasSize(1);
        final Object structureTypeInst = ReflectUtil.instantiate("org.flowable.webservice.counter.StructureType");
        final Class<? extends Object> structureType = structureTypeInst.getClass();
        this.assertStructure(structures.get(0), "inheritedRequest", new String[] { "rootElt", "inheritedElt", "newSimpleElt",
                "newStructuredElt" }, new Class<?>[] { Short.class, Integer.class, String.class, structureType });
        List<Field> declaredFields = filterJacoco(structureType.getDeclaredFields());
        assertThat(declaredFields).hasSize(2);
        assertThat(structureType.getDeclaredField("booleanElt")).isNotNull();
        assertThat(structureType.getDeclaredField("dateElt")).isNotNull();
        assertThat(filterJacoco(structureType.getSuperclass().getDeclaredFields())).hasSize(1);
        assertThat(structureType.getSuperclass().getDeclaredField("rootElt")).isNotNull();
    }