KCCredentialsUserManagementService extends AbstractUserManagementService { @Override public GroupManager groups() { return groupManager; } @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 testGetGroupsManager() { Assert.assertEquals(groupManager, tested.groups()); }