### Question:
FormsContainer implements IsElement { public void flush(String graphUUID, String elementUUID) { FormDisplayer displayer = getDisplayer(graphUUID, elementUUID); DynamicFormRenderer renderer = displayer.getRenderer(); renderer.flush(); } @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 testflush() { DynamicFormRenderer dynamicFormRenderer = mock(DynamicFormRenderer.class); FormDisplayer formDisplayer = mock(FormDisplayer.class); when(formDisplayer.getRenderer()).thenReturn(dynamicFormRenderer); FormsContainer formsContainer = mock(FormsContainer.class); when(formsContainer.getDisplayer(GRAPH_UUID, FIRST_ELEMENT_UUID)).thenReturn(formDisplayer); doCallRealMethod().when(formsContainer).flush(GRAPH_UUID, FIRST_ELEMENT_UUID); formsContainer.flush(GRAPH_UUID, FIRST_ELEMENT_UUID); verify(dynamicFormRenderer, times(1)).flush(); }