@Test
public void createLuceneQueryStringReturnsExpectedQueryAndUsesFunction() {

    // given
    var values = List.of("value1", "value2");
    var operator = "|";
    var expectedQueryString = "-value1 | -value2";
    Function<String, String> function = (String value) -> '-' + value;
    // when
    var actualQueryString = HibernateSimpleQueryUtils.createLuceneQueryString(values, operator, function);
    // then
    assertThat(actualQueryString).isEqualTo(expectedQueryString);
}