@Test
public void makeQueryPrefixAndFuzzyReturnsExpectedQuery() {

    // given
    var givenSimpleQuery = "((java | junit) & mockito~2) | spring* | \"kotlin\"";
    var expectedSimpleQuery = "(((java | java~1 | java*) | (junit | junit~1 | junit*)) & mockito~2) | spring* | \"kotlin\"";
    // when
    var actualQuery = HibernateSimpleQueryUtils.makeQueryPrefixAndFuzzy(givenSimpleQuery);
    // then
    assertThat(actualQuery).isEqualTo(expectedSimpleQuery);
}