@Test( expected = UnauthorizedActionException.class )
public void testBindApplication_invalidApplication() throws Exception {

	TestApplication app = new TestApplication();
	app.setDirectory( this.folder.newFolder());
	ManagedApplication ma = new ManagedApplication( app );
	TestManagerWrapper.addManagedApplication( this.mngr, ma );
	this.mngr.bindOrUnbindApplication( ma, ma.getApplication().getTemplate().getName(), "invalid", true );
}