### Question:
FormsContainer implements IsElement { @PreDestroy public void destroyAll() { view.clear(); currentDisplayer = null; displayersInstance.destroyAll(); formDisplayers.clear(); currentDisplayer = null; } @Inject  FormsContainer(final FormsContainerView view,
                          final @Any ManagedInstance<FormDisplayer> displayersInstance,
                          final Event<FormFieldChanged> formFieldChangedEvent); void render(final String graphUuid,
                       final String domainObjectUUID,
                       final Object domainObject,
                       final Path diagramPath,
                       final FieldChangeHandler changeHandler,
                       final RenderMode renderMode); void clearDiagramDisplayers(final String graphUuid); void clearFormDisplayer(final String graphUuid,
                                   final String elementUid); void flush(String graphUUID, String elementUUID); @Override HTMLElement getElement(); @PreDestroy void destroyAll();  }### Answer:
@Test public void testDestroyAllDisplayers() { RenderMode renderMode = RenderMode.EDIT_MODE; testRender(getNode(FIRST_ELEMENT_UUID), 1, 1, renderMode); testRender(getNode(SECOND_ELEMENT_UUID), 2, 1, renderMode); formsContainer.destroyAll(); verify(view, times(1)).clear(); verify(displayersInstance, times(1)).destroyAll(); }