Mockito test.