void () { DomApplicationComponent.getInstance().registerImplementation(AnotherElement.class, EmptyImpl.class, getTestRootDisposable()); DomApplicationComponent.getInstance().registerImplementation(DomElement.class, BaseImpl.class, getTestRootDisposable()); final AnotherElement element = createElement("", AnotherElement.class); assertTrue(element.getClass().getSuperclass().getName(), element instanceof EmptyImpl); }