Today I stumbled on an issue with unit testing code that makes use of
the ColdBox mail service. The root of the problem is that the Mail
bean's config method declares that it returns an object of type
'Mail'; this causes problems when needing to mock the return value of
the method (using the full component path solves the issue). For
instance:
Snippet of code to test: