Replaced the mock interface implementations with Mockito calls.