Test Examples in Java