public boolean isEnabled() {
    return analysisMetadataHolder.isPullRequest() || periodHolder.hasPeriodDate() ||
      (periodHolder.hasPeriod() && isOnBranchUsingReferenceBranch());
  }
@Test
  public void isEnabled_returns_true_when_periodDate_present() {
    periodHolder.setPeriod(new Period(NewCodePeriodType.NUMBER_OF_DAYS.name(), "10", 1000L));
    assertThat(newIssueClassifier.isEnabled()).isTrue();
  }