@Test
public void replaceSubstringReplacesAtTheBeginningOfWord() {

    // given
    var originalString = "Hello World";
    var replacement = "Hi";
    var expectedString = "Hi World";
    var startIndex = 0;
    var endIndex = 4;
    var startEndIndexPair = Pair.of(startIndex, endIndex);
    // when
    var actualString = HibernateSimpleQueryUtils.replaceSubstring(startEndIndexPair, originalString, replacement);
    // then
    assertThat(actualString).isEqualTo(expectedString);
}