Adds mockito in unit test for cloud protocols.