### Question:
ElementViewManager extends ViewGroupManager<Element> { @Override protected Element createViewInstance(ThemedReactContext reactContext) { Element element = createView(reactContext); register(element); return element; }  @Override String getName(); Element createView(ThemedReactContext reactContext); @Override void onDropViewInstance(Element element); @ReactProp(name = "elementId") void setElementId(Element element, String id); @Override boolean needsCustomLayoutForChildren();  }### Answer:
@Test public void createViewInstance() { Element element = uut.createViewInstance(reactContext); assertThat(element).isNotNull(); }
@Test public void createViewInstance_registersInParentReactView() { ElementViewManager spy = spy(uut); parentView.addView(view); spy.createViewInstance(reactContext); dispatchPreDraw(view); dispatchOnGlobalLayout(view); verify(parentView).registerElement(view); }