@NonNull
    static Predicate<NotificationTemplate> matchReasonType(String reasonType) {
        return template -> template.getSpec().getReasonSelector().getReasonType()
            .equals(reasonType);
    }
@Test
    void matchReasonTypeTest() {
        var template = createNotificationTemplate("fake-template");
        assertThat(ReasonNotificationTemplateSelectorImpl.matchReasonType("new-comment-on-post")
            .test(template)).isTrue();

        assertThat(ReasonNotificationTemplateSelectorImpl.matchReasonType("fake-reason-type")
            .test(template)).isFalse();
    }