KCCredentialsUserManagementService extends AbstractUserManagementService { @PostConstruct public void init() { clientFactory.init(new ConfigProperties(System.getProperties())); this.userManager.init(clientFactory); this.groupManager.init(clientFactory); } @Inject  KCCredentialsUserManagementService(final KeyCloakUserManager userManager,
                                              final KeyCloakGroupManager groupManager,
                                              final CredentialsClientFactory clientFactory,
                                              final @Named("uberfireRoleManager") UberfireRoleManager roleManager); @PostConstruct void init(); @Override UserManager users(); @Override GroupManager groups();  }
@Test public void testInit() { this.tested.init(); verify(clientFactory, times(1)).init(any(ConfigProperties.class)); verify(userManager, times(1)).init(clientFactory); verify(groupManager, times(1)).init(clientFactory); }