@Test
@FixFor("DBZ-1340")
public void getBegin() {

    assertThat(Strings.getBegin(null, 10)).isNull();
    assertThat(Strings.getBegin("", 10)).isEqualTo("");
    assertThat(Strings.getBegin("INSERT ", 7)).isEqualTo("INSERT ");
    assertThat(Strings.getBegin("INSERT INTO", 7)).isEqualTo("INSERT ");
    assertThat(Strings.getBegin("UPDATE mytable", 7)).isEqualTo("UPDATE ");
    assertThat(Strings.getBegin("delete from ", 7).toUpperCase()).isEqualTo("DELETE ");
}