for java testing usage