@Test
public void testFindIcon_tpl() throws Exception {

	File appDir = this.folder.newFolder();
	ApplicationTemplate tpl = new ApplicationTemplate( "app" ).version( "v1" ).directory( appDir );
	File descDir = new File( appDir, Constants.PROJECT_DIR_DESC );
	Assert.assertTrue( descDir.mkdirs());
	File trickFile = new File( descDir, "file.txt" );
	Assert.assertTrue( trickFile.createNewFile());
	Assert.assertNull( IconUtils.findIcon( tpl ));
	File singleJpgFile = new File( descDir, "whatever.jpg" );
	Assert.assertTrue( singleJpgFile.createNewFile());
	Assert.assertEquals( singleJpgFile, IconUtils.findIcon( tpl ));
	File defaultFile = new File( descDir, "application.sVg" );
	Assert.assertTrue( defaultFile.createNewFile());
	Assert.assertEquals( defaultFile, IconUtils.findIcon( tpl ));
	Assert.assertNull( IconUtils.findIcon( new ApplicationTemplate( "app" ).version( "" )));
	Assert.assertNull( IconUtils.findIcon( new ApplicationTemplate( "app" ).version( "" )));
	Assert.assertNull( IconUtils.findIcon( new ApplicationTemplate( "app" ).version( "v2" )));
}