D:add hamcrest and mockito test code