@Test
public void getIndexAfterFirstAppearanceOfReturnsMinusOneIfCharacterIsLastCharacter() {

    // given
    var input = "abcd";
    var character = 'd';
    var expectedIndex = -1;
    var startIndex = 0;
    // when
    var actualIndex = HibernateSimpleQueryUtils.getIndexAfterFirstAppearanceOf(startIndex, character, input);
    // then
    assertThat(actualIndex).isEqualTo(expectedIndex);
}