@Test
public void testIsTemplateUsed() throws Exception {

	ApplicationTemplate tpl = new ApplicationTemplate( "lamp" );
	Assert.assertFalse( this.mngr.isTemplateUsed( tpl ));
	ManagedApplication ma = new ManagedApplication( new Application( "app", tpl ));
	ma.getApplication().setDirectory( this.folder.newFolder());
	TestManagerWrapper.addManagedApplication( this.mngr, ma );
	Assert.assertTrue( this.mngr.isTemplateUsed( tpl ));
	ApplicationTemplate tpl2 = new ApplicationTemplate( "lamp" ).version( "v2" );
	Assert.assertFalse( this.mngr.isTemplateUsed( tpl2 ));
}