@Test
public void testGenerateTml() throws Exception {

	File tmlFile = File.createTempFile("TestObjectSchema", ".tml");
	try (FileOutputStream output = new FileOutputStream(tmlFile)) {
		SchemaGenerator.genTml(Arrays.asList(TestClass.class.getCanonicalName()), schemaVersion, output, null);
	} 
	// Load the generated schema file and do the checks.
	Schema schema = Schema.build(tmlFile.getAbsolutePath());
	tmlFile.deleteOnExit();
	assertEquals(this.schemaVersion.getName(), schema.getVersion().getName());
	assertEquals(this.schemaVersion.getVersionNumber(), schema.getVersion().getVersionNumber());
	assertNotNull(schema.findType("com.expedia.tesla.compiler.Empty"));
	assertNotNull(schema.findType("com.expedia.tesla.compiler.TestInterface"));
	assertNotNull(schema.findType("com.expedia.tesla.compiler.Base"));
	assertNotNull(schema.findType("com.expedia.tesla.compiler.Sex"));
	assertNotNull(schema.findType("com.expedia.tesla.compiler.TestClass"));
}