PredefinedFileDaoImpl implements PredefinedFileDao,
        ServletContextAware { @Override public Set<File> getPredefinedFiles() { return createPredefinedFilesSet(); }  void setLocation(java.io.File location); java.io.File getLocation(); @Override void setServletContext(ServletContext servletContext); @PostConstruct void initFiles(); @Override Set<File> getPredefinedFiles(); @Override File findByName(String name);  }
@Test public void getPredefinedFiles() { Set<File> files = dao.getPredefinedFiles(); assertNotNull(files); assertEquals(2, files.size()); File file = (File) CollectionUtils.get(files, 0); assertNull(file.getId()); assertNull(file.getVersion()); assertNull(file.getProject()); assertEquals(FileType.PREDEFINED, file.getType()); assertTrue(file.getName().startsWith("PREDEFINED_FILE")); assertNotNull(file.getData()); file.setName("new predefined name"); assertFalse(files.equals(dao.getPredefinedFiles())); }