sakaiproject/nakamura — pull request #622 by zathomas (2012-02-28 21:10:42+00:00)
Title: KERN-2603 can't GET a version on anything without a resourceType

The cause of [KERN-2603](https://jira.sakaiproject.org/browse/KERN-2603) was when you try to get a single version of a content node without a `sling:resourceType` property, its resource would return `null` for `getResourceType()` which makes Sling very sad.

This patch returns `sparse/unknown` for the resource type if there is no `sling:resourceType` property.

I moved the anonymous inner `ResourceWrapper` class into a helper method because that made my unit test go from ridiculous and impossible to short and simple.