private static void compareVersionDefinitions( MVD mvd1, MVD mvd2 ) 
		throws MVDTestException
	{
		int numVersions1 = mvd1.numVersions();
		int numVersions2 = mvd2.numVersions();
		if ( numVersions1 != numVersions2 )
			throw new MVDTestException(
				"Number of versions in MVDs don't match" );
		for ( int vId=1;vId<=numVersions1;vId++ )
		{
			// check short names
			String shortName1 = mvd1.getVersionShortName( vId );
			String shortName2 = mvd2.getVersionShortName( vId );
			if ( !shortName1.equals(shortName2) )
				throw new MVDTestException(
					"Short names for version "+vId+" don't match" );
			// check long names
			String longName1 = mvd1.getVersionLongName( vId );
			String longName2 = mvd2.getVersionLongName( vId );
			if ( !longName1.equals(longName2) )
				throw new MVDTestException(
					"Long names for version "+vId+" don't match" );
			// check group ids
			short group1 = mvd1.getGroupForVersion( vId );
			short group2 = mvd2.getGroupForVersion( vId );
			if ( group1 != group2 )
				throw new MVDTestException(
					"Groups for version "+vId+" don't match" );
			// check backup values
			int backup1 = mvd1.getBackupForVersion( vId );
			int backup2 = mvd2.getBackupForVersion( vId );
			if ( backup1 != backup2 )
				throw new MVDTestException(
					"Bckup versions for version "+vId+" don't match" );
		}
	}