How to test SolidQueue job concurrency restrictions

I am using Rails SolidQueue to restrict some of my job concurrency. I was wondering how to unit test this scenario. I know that in test environment we use a test queue adapteur.

My question would be what are the good practices to test this concurrency use cases ?



class MyJob < ApplicationJob
  limits_concurrency to: max_concurrent_executions, key: ->(arg1, arg2, **) { ... }, duration: max_interval_to_guarantee_concurrency_limit, group: concurrency_group, on_conflict: on_conflict_behaviour
end