@Test
public void testInvalidApplicationDescriptor() throws Exception {

	File appDirectory = this.folder.newFolder();
	File descDirectory = new File( appDirectory, Constants.PROJECT_DIR_DESC );
	if( ! descDirectory.mkdir())
		throw new IOException();
	File descFile = new File( descDirectory, Constants.PROJECT_FILE_DESCRIPTOR );
	if( ! descFile.createNewFile())
		throw new IOException();
	String content = "fail.read = true";
	Utils.copyStream( new ByteArrayInputStream( content.getBytes( "UTF-8" )), descFile );
	ApplicationLoadResult lr = RuntimeModelIo.loadApplication( appDirectory );
	Assert.assertTrue( lr.getLoadErrors().size() > 1 );
	Assert.assertEquals( ErrorCode.PROJ_READ_DESC_FILE, lr.getLoadErrors().iterator().next().getErrorCode());
}