EmbeddedFormDisplayer implements FormDisplayerView,
                                              IsWidget { @Override public void displayErrorMessage(String errorHeader, String errorMessage) { view.showErrorMessage(errorHeader, errorMessage); } @Inject  EmbeddedFormDisplayer(EmbeddedFormDisplayerView view); @Override void display(GenericFormDisplayer displayer); @Override void displayErrorMessage(String errorHeader, String errorMessage); @Override Command getOnCloseCommand(); @Override void setOnCloseCommand(Command onCloseCommand); @Override GenericFormDisplayer getCurrentDisplayer(); @Override Widget asWidget();  }
@Test public void testShowErrorMessage() { displayer.displayErrorMessage(ERROR_HEADER, ERROR_MESSAGE); verify(view).showErrorMessage(ERROR_HEADER, ERROR_MESSAGE); }