@Test
public void testEmpty() {

	File fileEmpty = FileHelper.getClassLoaderResourceAsFile(this.getClass().getClassLoader(), "emptyFolder");
	
	DirectoryDataPool conf = new DirectoryDataPool();
	conf.setFolder(new DynamicValue<String>(fileEmpty.getAbsolutePath()));
	DataSet<?> poolEmpty = DataPoolFactory.getDataPool("folder", conf, newExecutionContext());
	poolEmpty.init();
	DataPoolRow next = poolEmpty.next();
	Assert.assertTrue(next==null || ((FileDataPoolImpl.ExtendedFile)next.getValue()).getName().equals(".gitignore"));
	
	poolEmpty.close();
}