Update hello.java

added test