assertEquals(key.build(), cache.createKey(request));
}
private RequestAuthenticationInfo newMockAuthInfo(boolean isSignOwner, boolean isSignViewer,
Map<String, String> attributesMap) {
RequestAuthenticationInfo authInfo = EasyMock.createNiceMock(RequestAuthenticationInfo.class);
expect(authInfo.getAttributes()).andReturn(attributesMap).anyTimes();
expect(authInfo.getAuthType()).andReturn(AuthType.SIGNED).anyTimes();
expect(authInfo.getHref()).andReturn(DEFAULT_URI).anyTimes();
expect(authInfo.isSignOwner()).andReturn(isSignOwner).anyTimes();
expect(authInfo.isSignViewer()).andReturn(isSignOwner).anyTimes();
return authInfo;
}