public void testCreateTemplate_WithInclude() throws Exception {
String encoding = "UTF-8";
// first, velocity calls the loader to load the resource
loaderControl.expectAndReturn(loader.getResource("name"), new StringResource("Hello"));
// second, velocity calls the loader when trying to get the last modified date of the resource.
loaderControl.expectAndReturn(loader.getResource("name"), null);
Resource resource = new StringResource("#include( \"name\" )");
loaderControl.replay();
Template template = engine.createTemplate(resource, encoding);