@Test
public void replaceSubstringReplacesInTheMiddleOfTheWord() {

    // given
    var originalString = "Oh hello there";
    var replacement = "hi";
    var expectedString = "Oh hi there";
    var startIndex = 3;
    var endIndex = 7;
    var startEndIndexPair = Pair.of(startIndex, endIndex);
    // when
    var actualString = HibernateSimpleQueryUtils.replaceSubstring(startEndIndexPair, originalString, replacement);
    // then
    assertThat(actualString).isEqualTo(expectedString);
}