@Override
  public CiConfiguration loadConfiguration() {
    String revision = system.envVariable(PROPERTY_COMMIT);
    if (isEmpty(revision)) {
      LoggerFactory.getLogger(getClass()).warn("Missing environment variable " + PROPERTY_COMMIT);
    }
    return new CiConfigurationImpl(revision, getName());
  }
@Test
  public void configuration_of_pull_request() {
    setEnvVariable("CIRRUS_PR", "1234");
    setEnvVariable("CIRRUS_BASE_SHA", "abd12fc");
    setEnvVariable("CIRRUS_CHANGE_IN_REPO", "fd355db");

    assertThat(underTest.loadConfiguration().getScmRevision()).hasValue("fd355db");
  }