/** Create a service instance, properly mocked for testing. */
private static GaeEmailService createService() {
GaeEmailService service = new GaeEmailService();
GaeEmailUtils gaeEmailUtils = mock(GaeEmailUtils.class);
ITemplateService templateService = mock(ITemplateService.class);
service.setGaeEmailUtils(gaeEmailUtils);
service.setTemplateService(templateService);
service.afterPropertiesSet();