CMS-842 Implement resource class that returns content type icon.
Fixed unit tests with mocked http context.