GroupCreationWorkflow implements IsWidget { void showError(final Throwable throwable) { errorEvent.fire(new OnErrorEvent(GroupCreationWorkflow.this, throwable)); } @Inject  GroupCreationWorkflow(final ClientUserSystemManager userSystemManager,
                                 final Caller<AuthorizationService> authorizationService,
                                 final PermissionManager permissionManager,
                                 final Event<OnErrorEvent> errorEvent,
                                 final ConfirmBox confirmBox,
                                 final LoadingBox loadingBox,
                                 final Event<NotificationEvent> workbenchNotification,
                                 final CreateEntity createEntity,
                                 final GroupUsersAssignment groupUsersAssignment,
                                 final Event<CreateGroupEvent> onCreateGroupEvent,
                                 final EntityWorkflowView view); @PostConstruct void init(); void create(); void clear(); @Override Widget asWidget();  }
@Test public void testShowError() { tested.showErrorMessage("error1"); verify(errorEvent, times(1)).fire(any(OnErrorEvent.class)); }