*/
@Test
public void testGenerate() throws IOException {
File file = File.createTempFile("tiles", "template");
file.deleteOnExit();
TemplateSuite suite = createMock(TemplateSuite.class);
TemplateClass templateClass = createMock(TemplateClass.class);
TemplateSuiteGenerator templateSuiteGenerator = createMock(TemplateSuiteGenerator.class);
TemplateClassGenerator templateClassGenerator = createMock(TemplateClassGenerator.class);
@SuppressWarnings("unchecked")
Map<String, String> parameters = createMock(Map.class);
List<TemplateClass> templateClasses = new ArrayList<TemplateClass>();
templateClasses.add(templateClass);
expect(suite.getTemplateClasses()).andReturn(templateClasses);
templateSuiteGenerator.generate(file, "my.package", suite, parameters);
templateClassGenerator.generate(file, "my.package", suite, templateClass, parameters, "my.Runtime", "my.Request");
replay(suite, templateClass, templateSuiteGenerator, templateClassGenerator, parameters);
TSGeneratorDirectoryPair tsPair = new TSGeneratorDirectoryPair(file, templateSuiteGenerator);