@Test
public void testSum() throws Exception {

    SimpleFeatureSource source = bugs.getFeatureSource("bugsites");
    
    TransformProcess process = new TransformProcess();
    
    String definition = "the_geom=the_geom\nnumber=cat";
    SimpleFeatureCollection origional = source.getFeatures();
    SimpleFeatureCollection result = process.execute( origional, definition );
    
    assertEquals( origional.size(), result.size() );
    
    SimpleFeatureType schema = result.getSchema();
    AttributeDescriptor number = schema.getDescriptor("number");
    assertTrue( Long.class.isAssignableFrom( number.getType().getBinding() ) );
}