ComponentModel model = mockComponentModel();
ComponentResourceLocator locator = newMock(ComponentResourceLocator.class);
train_getComponentClassName(model, PACKAGE + ".Fred");
expect(locator.locateTemplate(model, english)).andReturn(resource).once();
expect(resource.exists()).andReturn(true).anyTimes();
expect(resource.toURL()).andReturn(null).anyTimes();
expect(locator.locateTemplate(model, french)).andReturn(resource).once();