loader.addResource(new File(rootDir,"testFolder"));
assertEquals(expectedFolderResources, loader.getResources(ResourceState.REGISTERED));
assertTrue(loader.getResources(ResourceState.ERROR).isEmpty());
assertTrue(loader.getResources(ResourceState.LOADED).isEmpty());
assertTrue(loader.getResources(ResourceState.IGNORED).isEmpty());
loader.loadResources();
assertEquals(new HashSet<String>(Arrays.asList(
folder+"archiveInFolder.zip", folder+"fileInFolder.txt",
folder+"otherFileInFolder.txt",folder+"archiveWithIgnore.zip",
folder+"archiveWithError.zip")),
loader.getResources(ResourceState.LOADED));