@Test
public void testFindApplicationName_valid() throws Exception {

	File templatesDir = new File( "whatever" );
	File globalTemplate = new File( templatesDir, "root.tpl" );
	File specificTemplate = new File( templatesDir, "specific/specific.tpl" );
	Assert.assertEquals( "specific", TemplateUtils.findApplicationName( templatesDir, specificTemplate ));
	Assert.assertNull( TemplateUtils.findApplicationName( templatesDir, globalTemplate ));
}