add Mockito test.