java testing code...