}
@Test
public void IndexOf2() {
StringPath str = QCat.cat.name;
assertToString("substring(cat.name,1,locate(?1,cat.name)-1)", str.substring(0, str.indexOf("x")));
}
@Test
public void IndexOf3() {
assertToString("substring(cat.name,2,1)", QCat.cat.name.substring(1,2));