jdk1.7 testcode