some java test codes