@Test
public void makeQueryPrefixAndFuzzyReplacesNonExplicitTerms() {

    // given
    var givenSimpleQuery = "java";
    var expectedSimpleQuery = "(java | java~1 | java*)";
    // when
    var actualQuery = HibernateSimpleQueryUtils.makeQueryPrefixAndFuzzy(givenSimpleQuery);
    // then
    assertThat(actualQuery).isEqualTo(expectedSimpleQuery);
}