UpdateExtensionsCacheFile extends LocalSetupTask { public void setCacheFile(File cacheFile) { this.cacheFile = cacheFile; }  File getCacheFile(); void setCacheFile(File cacheFile); void setJarFiles(List<File> jarFiles); List<File> getJarFiles(); void setIncludePackages(List<String> includePackages); List<String> getIncludePackages(); void setExcludePackages(List<String> excludePackages); List<String> getExcludePackages(); void setFileIncludeFilter(FileFilter fileIncludeFilter); FileFilter getFileIncludeFilter();  }
@Test public void testUpdateExtensionsCacheFileValidation() throws Exception { File cacheFile = new File("target"+File.separator+"extensions.cache"); UpdateExtensionsCacheFile task = new UpdateExtensionsCacheFile(); task.setCacheFile(cacheFile); if( task.isConfigured() && task.isValidated() ) { log.debug("validated, extensions.cache does not need to be updated"); } else { printFaults(task.getConfigurationFaults()); printFaults(task.getValidationFaults()); } }