@Test
public void getReplaceableTermsOfQueryReturnsExpectedPairsOfDisjunctionQueryWithWhitespace() {

    // given
    var simpleQuery = "test | java";
    var expectedPairs = List.of(
            Pair.of(0, 3),
            Pair.of(7, simpleQuery.length() - 1)
    );
    // when
    var actualPairs = HibernateSimpleQueryUtils.getReplaceableTermsOfQuery(simpleQuery);
    // then
    assertThat(actualPairs).containsExactlyInAnyOrderElementsOf(expectedPairs);
}