GRAILS-11116 add unit test for registering marshallers in PostConstruct method