grails/grails-core — pull request #260 by dan-woods (2012-09-05 22:06:31+00:00)
Title: add domain classes to the grails application context when in unit test

Domain classes are not being resolved as such inside the grails application context during unit tests which causes the DomainClassMarshaller to not support the object. Therefore, the object falls back on the GroovyBranMarshaller, which will fail to render the object.