// Get the policy, this should invoke the underlying retriever.
actualPolicy = retriever.retrievePolicy(projectMock, projectRelativeName);
assertSame(policy, actualPolicy);
// Get the policy, this should get the policy from the cache.
actualPolicy = retriever.retrievePolicy(projectMock, projectRelativeName);
assertSame(policy, actualPolicy);
// Make sure that the object was stored in the cache.
Object object = policyCache.retrieve(remoteName, providerMock);
assertSame(policy, object);