@Udf
  public int instr(final String str, final String substring) {
    return instr(str, substring, 1);
  }
@Test
  public void shouldTruncateOutOfBoundIndexes() {
    assertThat(udf.instr("CORPORATE FLOOR", "OR", 100), is(0));
    assertThat(udf.instr("CORPORATE FLOOR", "OR", -100), is(0));
  }