@Test( expected = IOException.class )
public void testCreateTargetFromFile_withApplicationTemplate_conflict() throws Exception {

	// Create a target
	File f = this.folder.newFile("toto.properties");
	TestApplicationTemplate tpl1 = new TestApplicationTemplate();
	try {
		Utils.writeStringInto( "id: tid\nprop: value\nhandler: h", f );
		File targetDir = new File( this.configurationMngr.getWorkingDirectory(), ConfigurationUtils.TARGETS + "/tid" );
		Assert.assertFalse( targetDir.exists());
		String targetId = this.mngr.createTarget( f, tpl1 );
		Assert.assertEquals( "tid", targetId );
		Assert.assertTrue( targetDir.exists());
		Assert.assertEquals( 2, targetDir.listFiles().length);
	} catch( Exception e ) {
		Assert.fail( "No exception was expected here." );
	}
	// Create it from another template => conflict
	TestApplicationTemplate tpl2 = new TestApplicationTemplate();
	tpl2.setName( "whatever" );
	this.mngr.createTarget( f, tpl2 );
}