public function testAssignRoleToUserGroup()
{
$roleService = $this->repository->getRoleService();
$role = $roleService->loadRole(1);
$userGroup = $this->repository->getUserService()->loadUserGroup(12);
$originalAssignmentCount = count($roleService->getRoleAssignmentsForUserGroup($userGroup));
$roleService->assignRoleToUserGroup($role, $userGroup);
$newAssignmentCount = count($roleService->getRoleAssignmentsForUserGroup($userGroup));
self::assertEquals($originalAssignmentCount + 1, $newAssignmentCount);
}