@Test
public void no_template_found()
{
TemplateParser parser = mockTemplateParser();
ComponentModel model = mockComponentModel();
Resource baseResource = mockResource();
Resource missingResource = mockResource();
train_getComponentClassName(model, PACKAGE + ".Barney");
ComponentResourceLocator locator = mockLocator(model, english, null);
train_getParentModel(model, null);
train_getBaseResource(model, baseResource);
expect(baseResource.withExtension(TapestryConstants.TEMPLATE_EXTENSION)).andReturn(missingResource);
expect(missingResource.exists()).andReturn(false);
replay();
ComponentTemplateSourceImpl source = new ComponentTemplateSourceImpl(true, parser, locator, converter);