Add a Java program to test