@Override
  public DevOpsProjectCreationContext create(AlmSettingDto almSettingDto, DevOpsProjectDescriptor devOpsProjectDescriptor) {
    AccessToken accessToken = getAccessToken(almSettingDto);
    return createDevOpsProject(almSettingDto, devOpsProjectDescriptor, accessToken);
  }
@Test
  void create_whenNoPat_shouldThrow() {
    AlmSettingDto almSettingDto = mock();

    when(userSession.getUuid()).thenReturn("user-uuid");
    when(dbClient.almPatDao().selectByUserAndAlmSetting(dbClient.openSession(false), userSession.getUuid(), almSettingDto)).thenReturn(Optional.empty());

    assertThatIllegalArgumentException()
      .isThrownBy(() -> githubDevOpsProjectService.create(almSettingDto, DEV_OPS_PROJECT_DESCRIPTOR))
      .withMessage("No personal access token found");
  }