created test in java