public boolean isEnabled() {
    return analysisMetadataHolder.isPullRequest() || periodHolder.hasPeriodDate() ||
      (periodHolder.hasPeriod() && isOnBranchUsingReferenceBranch());
  }
@Test
  public void isEnabled_returns_true_when_reference_period_present() {
    periodHolder.setPeriod(new Period(NewCodePeriodType.REFERENCE_BRANCH.name(), "master", null));
    assertThat(newIssueClassifier.isEnabled()).isTrue();
  }