java test demo