templateService.afterPropertiesSet();
GaeEmailService realEmailService = new GaeEmailService();
realEmailService.setGaeEmailUtils(gaeEmailUtils);
realEmailService.setTemplateService(templateService);
realEmailService.afterPropertiesSet();
// By creating this spy, the real underlying code will be called, but we'll
// be able to verify the arguments that are passed in to the method calls.
return spy(realEmailService);
} catch (IOException e) {