ClientUserSystemManager implements UserSystemManager { void showError(final Throwable throwable) { exceptionMessageResolver.consumeExceptionMessage(throwable, errorPopupPresenter::showMessage); } @Inject  ClientUserSystemManager(final Caller<UserManagerService> usersManagerService,
                                   final Caller<GroupManagerService> groupsManagerService,
                                   final Caller<RoleManagerService> rolesManagerService,
                                   final ClientSecurityExceptionMessageResolver exceptionMessageResolver,
                                   final ErrorPopupPresenter errorPopupPresenter); @PostConstruct void initCache(); UserManager users(RemoteCallback<?> remoteCallback,
                             ErrorCallback errorCallback); GroupManager groups(RemoteCallback<?> remoteCallback,
                               ErrorCallback errorCallback); RoleManager roles(RemoteCallback<?> remoteCallback,
                             ErrorCallback errorCallback); @Override UserManager users(); @Override GroupManager groups(); @Override RoleManager roles(); boolean isUserCapabilityEnabled(final Capability capability); Collection<UserManager.UserAttribute> getUserSupportedAttributes(); UserManager.UserAttribute getUserSupportedAttribute(final String attributeName); boolean isGroupCapabilityEnabled(final Capability capability); boolean isCapabilityEnabled(final Map<Capability, CapabilityStatus> capabilities,
                                       final Capability capability); Collection<String> getConstrainedGroups(); User createUser(final String identifier); UserManager.UserAttribute createUserAttribute(final String name,
                                                         final boolean isMandatory,
                                                         boolean isEditable,
                                                         final String defaultValue); Group createGroup(final String name); Role createRole(final String name); @Override EntityValidator<User> usersValidator(); @Override EntityValidator<Group> groupsValidator(); @Override EntityValidator<Role> rolesValidator(); @Override boolean isActive(); void waitForInitialization(final Command command); UserManagerSettings getUserManagerSettings(); GroupManagerSettings getGroupManagerSettings();  }
@Test public void testShowError() { tested.showError(new RuntimeException()); verify(errorPopupPresenter, times(1)).showMessage(anyString()); }