public static void main(String[] args) {
		
		if (args.length != 1) {
			System.err.println("Incorrect usage!");	
			System.exit(-1);
		}
		
		File dataDir = new File(args[0]);
		if (!dataDir.isDirectory()) {
			System.err.println(args[0] + " is not a valid directory");	
			System.exit(-1);
		}
		
		File[] files = dataDir.listFiles(TEST_XML_FILTER);
		for (int i = 0; i < files.length; i++) {
			if (files[i].length() == 0) {
				try {
					System.out.println("Found bad test data: " + files[i]);
					writeXmlFile(files[i]);	
				} catch (IOException e) {
					System.err.println("Failed to fix data file: " + files[i]);	
				}
			}	
		}
		
		
	}
JunitTestScan scans for 0-length JUnit xsl data files and fills in the file 
with minimal error data.
Ghidra/Features/Base/src/test/java/ghidra/JunitTestScan.java