public boolean appliesTo(String pipelineName, String stageName) {
        boolean pipelineMatches = this.pipelineName.equals(pipelineName) ||
            this.pipelineName.equals(GoConstants.ANY_PIPELINE);
        boolean stageMatches = this.stageName.equals(stageName) ||
            this.stageName.equals(GoConstants.ANY_STAGE);

        return pipelineMatches && stageMatches;
    }
@Test
    void shouldNotApplyIfPipelineDiffers() {
        NotificationFilter filter = new NotificationFilter("cruise1", GoConstants.ANY_STAGE, StageEvent.Breaks, false);
        assertThat(filter.appliesTo("cruise2", "dev")).isFalse();
    }