@Test
public void replaceTermWithFuzzyAndPrefixDisjunctionReplacesTermWithBracedDisjunction() {

    // given
    var simpleQuery = "java";
    var expectedQuery = "(java | java~1 | java*)";
    var startIndex = 0;
    var endIndex = 3;
    var startEndIndexPair = Pair.of(startIndex, endIndex);
    // when
    var actualQuery = HibernateSimpleQueryUtils.replaceTermWithFuzzyAndPrefixDisjunction(startEndIndexPair, simpleQuery);
    // then
    assertThat(actualQuery).isEqualTo(expectedQuery);
}