Update TestExample.java

add testD method