should probably be  File testModuleRoot = new File(getModulePath(), "test" + File.separator + moduleName);