Can you write a unit test for this class? BTW, I think you can do just `(map as JSON).toString(true /* pretty print */)` here. Just make sure you annotate the test class with `@TestMixin(GrailsUnitTestMixin)`.