add unit test(easymock,spring test).