@Override
  public boolean isDetected() {
    String ci = system.envVariable("CI");
    String revision = system.envVariable("BITBUCKET_COMMIT");
    return "true".equals(ci) && isNotEmpty(revision);
  }
@Test
  public void isDetected() {
    setEnvVariable("CI", "true");
    setEnvVariable("BITBUCKET_COMMIT", "bdf12fe");
    assertThat(underTest.isDetected()).isTrue();

    setEnvVariable("CI", "true");
    setEnvVariable("BITBUCKET_COMMIT", null);
    assertThat(underTest.isDetected()).isFalse();
  }