@Test
public void testSingleFile(){
DummyResourceImporter importer = new DummyResourceImporter(
Arrays.asList(rootDir+"singleFileTest.txt"));
ResourceLoader loader = new ResourceLoader(importer, false, false);
loader.addResource(new File(rootDir,"singleFileTest.txt"));
assertEquals(new HashSet<String>(Arrays.asList(rootDir+"singleFileTest.txt")),
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(rootDir+"singleFileTest.txt")),
loader.getResources(ResourceState.LOADED));
assertTrue(loader.getResources(ResourceState.REGISTERED).isEmpty());
assertTrue(loader.getResources(ResourceState.IGNORED).isEmpty());
assertTrue(loader.getResources(ResourceState.ERROR).isEmpty());
importer.checkAllProcessed();
}