@Override
  public void execute(Context context) {
    PreMeasuresComputationCheck.Context extensionContext = new ContextImpl();
    for (PreMeasuresComputationCheck extension : extensions) {
      try {
        extension.onCheck(extensionContext);
      } catch (PreMeasuresComputationCheckException pmcce) {
        ceTaskMessages.add(new CeTaskMessages.Message(pmcce.getMessage(), System2.INSTANCE.now(), MessageType.GENERIC));
      }
    }
  }
@Test
  public void context_contains_pullRequest_key_from_analysis_metadata_holder() throws PreMeasuresComputationCheckException {
    mockPr("pr1");
    PreMeasuresComputationCheck check = mock(PreMeasuresComputationCheck.class);

    newStep(check).execute(new TestComputationStepContext());

    ArgumentCaptor<Context> contextArgumentCaptor = ArgumentCaptor.forClass(Context.class);
    verify(check).onCheck(contextArgumentCaptor.capture());
    assertThat(contextArgumentCaptor.getValue().getBranch().getPullRequestKey()).isEqualTo("pr1");
  }