@Override
  public void execute(Context context) {

    Set<String> qpKeys =
      analysisMetadataHolder.getQProfilesByLanguage().values().stream().map(QualityProfile::getQpKey).collect(Collectors.toSet());

    try (DbSession dbSession = dbClient.openSession(false)) {
      Set<RuleKey> prioritizedRules = dbClient.activeRuleDao().selectPrioritizedRules(dbSession, qpKeys);
      prioritizedRulesHolder.setPrioritizedRules(prioritizedRules);
    }
  }
@Test
  void execute_whenPrioritizedRules_shouldHaveNonEmptyHolder() {
    when(dbClient.activeRuleDao()).thenReturn(mock());
    when(dbClient.activeRuleDao().selectPrioritizedRules(any(), any())).thenReturn(Set.of(RuleKey.of("repositoryKey", "ruleKey")));
    underTest.execute(mock());
    assertThat(prioritizedRulesHolder.getPrioritizedRules()).isNotEmpty();
  }