use jre6 and modify test case

change jre7 to jre6 and modify test case with Junit
Signed-off-by: Tim.Guan <gkqwt1990@gmail.com>