Resource resource = mockResource();
ComponentTemplateLocator locator = mockComponentTemplateLocator();
train_getComponentClassName(model, PACKAGE + ".Fred");
expect(locator.locateTemplate(model, Locale.ENGLISH)).andReturn(resource);
expect(resource.exists()).andReturn(true);
expect(resource.toURL()).andReturn(null);
train_parseTemplate(parser, resource, template);