public Collection<PostJobWrapper> selectPostJobs() {
    Collection<PostJob> result = sort(getFilteredExtensions(PostJob.class, null));
    return result.stream()
      .map(j -> new PostJobWrapper(j, postJobContext, postJobOptimizer))
      .filter(PostJobWrapper::shouldExecute)
      .toList();
  }
@Test
  public void dependsUponPhaseForPostJob() {
    PrePostJob pre = new PrePostJob();
    NormalPostJob normal = new NormalPostJob();

    ExtensionContainer iocContainer = mock(ExtensionContainer.class);
    when(iocContainer.getComponentsByType(PostJob.class)).thenReturn(List.of(pre, normal));

    PostJobExtensionDictionary selector = new PostJobExtensionDictionary(iocContainer, postJobOptimizer, mock(PostJobContext.class));
    assertThat(selector.selectPostJobs()).extracting("wrappedPostJob").containsExactly(pre, normal);
  }