void () { DomApplicationComponent.getInstance().registerImplementation(MyElement.class, Impl.class, getTestRootDisposable()); DomApplicationComponent.getInstance().registerImplementation(InheritedElement.class, AnotherImpl.class, getTestRootDisposable()); InheritedElement element = createElement("", InheritedElement.class); final Object o = new Object(); element.setObject(o); assertSame(o, element.getObject()); assertSame(o, element._getObject()); element.setString("foo"); assertEquals("foo", element.getString()); }