Example of Automated Test in Java