@PublicAPI(usage = ACCESS)
    public JavaClasses importUrl(URL url) {
        return importUrls(singletonList(url));
    }
@Test
    public void creates_relations_between_super_and_subclasses() {
        JavaClasses classes = new ClassFileImporter().importUrl(getClass().getResource("testexamples/classhierarchyimport"));
        JavaClass baseClass = classes.get(BaseClass.class);
        JavaClass subclass = classes.get(Subclass.class);
        JavaClass otherSubclass = classes.get(OtherSubclass.class);
        JavaClass subSubclass = classes.get(SubSubclass.class);
        JavaClass subSubSubclass = classes.get(SubSubSubclass.class);
        JavaClass subSubSubSubclass = classes.get(SubSubSubSubclass.class);

        assertThat(baseClass.getRawSuperclass().get().reflect()).isEqualTo(Object.class);
        assertThat(baseClass.getSubclasses()).containsOnly(subclass, otherSubclass);
        assertThat(baseClass.getSubclasses()).containsOnly(subclass, otherSubclass);
        assertThat(baseClass.getAllSubclasses()).containsOnly(subclass, otherSubclass, subSubclass, subSubSubclass, subSubSubSubclass);
        assertThat(baseClass.getAllSubclasses()).containsOnly(subclass, otherSubclass, subSubclass, subSubSubclass, subSubSubSubclass);
        assertThat(subclass.getRawSuperclass()).contains(baseClass);
        assertThat(subclass.getRawSuperclass()).contains(baseClass);
        assertThat(subclass.getAllSubclasses()).containsOnly(subSubclass, subSubSubclass, subSubSubSubclass);
        assertThat(subSubclass.getRawSuperclass()).contains(subclass);
    }