A small extension of Mockito mocking framework for testing asynchronous calls