private static void doFindTest()
	{
		try
		{
			System.out.print("Testing find command ");
			String folderName = TEST_DATA+File.separator+BLESSED_DAMOZEL;
			File folder = new File( folderName );
			String mvdName = createTestMVD( folder );
			File mvdFile = new File( mvdName );
			MVD mvd = MVDFile.internalise( mvdFile, null );
			Random rand = new Random( System.currentTimeMillis() );
			File[] files = folder.listFiles();
			files = removeDotFiles( files );
			// select 5 random patterns in five files
			for ( int i=0;i<5;i++ )
			{
				int fileNo = rand.nextInt( files.length );
				String pattern = getRandomPattern( files[fileNo], rand, 25, 15 );
				if ( pattern.length()<25 )
				{
					String[] args0 = {"-c","find","-m",mvdName,"-f",pattern};
					Match[] matches = getMatches( files, pattern, mvd );
					ByteArrayOutputStream bos = new ByteArrayOutputStream();
					PrintStream ps = new PrintStream( bos, true, "UTF-8" );
					MvdTool.run( args0, ps );
					ps.close();
					byte[] matchData = bos.toByteArray();
					compareMatches( matchData, matches );
				}
				System.out.print(".");
			}
			testsPassed++;
			System.out.println(" test passed.");
		}
		catch ( Exception e )
		{
			doTestFailed( e );
		}
	}