@Test
public void testService() throws Exception{

    VectorProcessFactory factory = new VectorProcessFactory();
    Set<Name> names = factory.getNames(); 
    assertFalse(names.isEmpty());
    assertTrue(names.contains(new NameImpl("vec", "Clip")));
    
    SimpleFeatureCollection features = fsLines.getFeatures();
    
    Map<String, Object> arguments= new HashMap<String, Object>();
    arguments.put("features", features);
    arguments.put("clip", new WKTReader().read("POLYGON((-10 -10, -10 10, 5000 10, 5000 -10, -10 -10))"));
    
    Map<String, Object> output = factory.create(new NameImpl("vec", "Clip")).execute(arguments, null);
    SimpleFeatureCollection result=(SimpleFeatureCollection) output.get("result");
    assertEquals(1, result.size());
   
    
}