private void createTestImportation() throws Exception
{
Compte compte = getCompteService().findByUserName("thegoon@fqsc.net");
EnsemblePuces ensemble = getEnsemblePucesService().findByCode(
"20100330-01");
ImportationPuces importation = getImportationPucesService()
.newImportation(compte, ensemble, new Date());
File file = new ClassPathResource(
"org/xrace/service/importation/puces/importation_puces-cas_normal.csv")
.getFile();
FileInputStream fis = new FileInputStream(file);
Resource resource = new Resource("file.csv", "csv", "Le fichier 1");
getResourceService().upload(fis, resource);
fis.close();
importation.setImportFile(resource);
getImportationPucesService().load(importation);
}