RasterClassifiedStatistics rcs = new RasterClassifiedStatistics();
try {
File dataFile = new File(getClass().getResource("landcover_2000.tiff").toURI());
File classificatorFile = new File(getClass().getResource("zambia_provinces_canvas.tiff").toURI());
Map<MultiKey, List<Result>> result = rcs.execute(true, new DataFile(dataFile), Arrays.asList(new DataFile[] { new DataFile(classificatorFile) }), Arrays
.asList(new Statistic[] { Statistic.SUM }));
LOGGER.info("Stat System test: OK");
} catch (IOException e) {
if("true".equals(System.getenv("forceExecution"))){
LOGGER.warn("The preliminary tests for executing stats are failed but has been configured the forceExecution, so move on with ingestion action expecting a failure when computing stats (just if they are defined of course)");