@Test
public void testCallViaProcessFactory() {

    Process process = Processors.createProcess(new NameImpl("ras", "PolygonExtraction"));
    assertNotNull(process);
    
    Map<String, Object> inputs = new HashMap<String, Object>();
    inputs.put("data", buildSmallCoverage());
    inputs.put("ranges", Arrays.asList(new Range<Integer>(0, true, 1, true), new Range<Integer>(2, true, 3, true)));
    Map<String, Object> results = process.execute(inputs, null);
    Object result = results.get("result");
    assertTrue(result instanceof SimpleFeatureCollection);
    SimpleFeatureCollection fc = (SimpleFeatureCollection) result;
    assertEquals(4, fc.size());
}