example of java tests