Java test sample