private static String createTestMVD( File folder ) 
		throws Exception
	{
		if ( !folder.isDirectory() || !folder.exists() )
			throw new MVDTestException("Missing folder "
				+folder.getName() );
		String mvdName = TEST_FOLDER+File.separator
			+folder.getName()+".mvd";
		if ( new File(mvdName).exists() )
			return mvdName;
		else
		{
			String[] args0 = { "-c","create","-m",mvdName,"-d",folder.getName()+" test" };
			MvdTool.run( args0, out );
			// add each version
			File[] versions = folder.listFiles();
			versions = removeDotFiles( versions );
			String[] args1 = { "-c","add","-m",mvdName,"-g",
				"TOP LEVEL","-s","","-l","","-t","","-v","" };
			for ( int vId=1,i=0;i<versions.length;i++,vId++ )
			{
				args1[7] = "V"+vId;
				args1[9] = versions[i].getName();
				args1[11] = versions[i].getAbsolutePath();
				args1[13] = Integer.toString( vId );
				emptyStream.clear();
				MvdTool.run( args1, out );
				System.out.print( "." );
				// else ignore nested folders
			}
			checkMVD( versions, mvdName );
			return mvdName;
		}
	}