java test demo study