for java testing