FORGE-1163 Fixed @XmlRootElement addition in entity-based resources

Added tests to ensure that the JPA entities have @XmlRootElement
when exposed as REST resources, and that DTOs have the annotation
when exposed as REST resources.