try {
modelId = this.createMockContentModel();
contentId = this.createMockContent();
String renderInfoCacheKey = BaseContentDispenser.getRenderizationInfoCacheKey(contentId, modelId, langCode, reqCtx);
assertNull(this._cacheInfoManager.getFromCache(renderInfoCacheKey));
ContentRenderizationInfo outputInfo = this._contentDispenser.getRenderizationInfo(contentId, modelId, langCode, reqCtx);
ContentRenderizationInfo cachedOutputInfo = (ContentRenderizationInfo) this._cacheInfoManager.getFromCache(renderInfoCacheKey);
assertNotNull(cachedOutputInfo);
assertEquals(outputInfo.hashCode(), cachedOutputInfo.hashCode());
assertEquals(outputInfo.getContentId(), cachedOutputInfo.getContentId());
assertEquals(outputInfo.getModelId(), cachedOutputInfo.getModelId());
assertEquals(outputInfo.getCachedRenderedContent(), cachedOutputInfo.getCachedRenderedContent());
} catch (Throwable t) {
throw t;
} finally {
this.deleteMockContentObject(contentId, modelId);
}