Tests
Reformat and deprecate redundant methods
Null bean error fix https://github.com/gpc/grails-greenmail/issues/6