for java tests