Mockito tests