public void testrunFormatterOnADirectoryGroovyScript() {
		log.info("Formatter.runFormatter on a directory that does exist with a groovy script");
		String dirName = System.getProperty("user.dir") + File.separator + "test";
		String fileName1 = System.getProperty("user.dir") + File.separator + "test" + File.separator
				+ "javaEclipseFormatterTest13243546.java";
		File absolutePathFile1 = new File(fileName1);
		String before1 = "			package groovyTest;\n  			public class genericJavaClass"
				+ "{\npublic static void main(String[] args) {\n// TODO Auto-generated method stub\n}\n}";

		String fileName2 = System.getProperty("user.dir") + File.separator + "test" + File.separator
				+ "groovyEclipseFormatterTest13243546";
		File absolutePathFile2 = new File(fileName2);
		String before2 = "#!/usr/bin/env groovy\n			package groovyTest;\n  			public class genericJavaClass"
				+ "{\npublic static void main(String[] args) {\n// TODO Auto-generated method stub\n}\n}";

		absolutePathFile = new File(dirName);
		try {
			absolutePathFile.mkdir();
			absolutePathFile1.createNewFile();
			absolutePathFile2.createNewFile();
			FileUtils.writeStringToFile(absolutePathFile1, before1);
			FileUtils.writeStringToFile(absolutePathFile2, before2);
			String[] args = new String[] { dirName };
			Formatter.runFormatter(args);
		} catch (SecurityException e) {
			log.error(e, e);
		} catch (IOException e) {
			log.error(e, e);
		}
		assertTrue("Formatter.runFormatter on a directory that does exist",
				!before1.equals(Formatter.readInFile(fileName1)) && !before2.equals(Formatter.readInFile(fileName2)));
		if (absolutePathFile1 != null) {
			if (absolutePathFile1.exists()) {
				absolutePathFile1.delete();
			}
		}
		if (absolutePathFile2 != null) {
			if (absolutePathFile2.exists()) {
				absolutePathFile2.delete();
			}
		}
		if (absolutePathFile != null) {
			if (absolutePathFile.exists()) {
				absolutePathFile.delete();
			}
		}
	}