@Test
public void testExecute_1()
                        throws Exception {

    String demoWPSURL = TestProperties.getProperty( "demo_wps_url" );
    Assume.assumeNotNull( demoWPSURL );
    WPSClient wpsClient = new WPSClient( new URL( demoWPSURL ) );
    org.deegree.protocol.wps.client.process.Process proc = wpsClient.getProcess( "Centroid", null );
    ProcessExecution execution = proc.prepareExecution();
    execution.addXMLInput( "GMLInput", null, CURVE_FILE.toURI(), false, "text/xml", null, null );
    execution.addOutput( "Centroid", null, null, true, null, null, null );
    ExecutionOutputs response = execution.execute();
    assertEquals( ExecutionState.SUCCEEDED, execution.getState() );
    ComplexOutput output = (ComplexOutput) response.get( 0 );
    XMLStreamReader reader = output.getAsXMLStream();
    XMLAdapter searchableXML = new XMLAdapter( reader );
    NamespaceBindings nsContext = new NamespaceBindings();
    nsContext.addNamespace( "wps", WPSConstants.WPS_100_NS );
    nsContext.addNamespace( "gml", "http://www.opengis.net/gml" );
    XPath xpath = new XPath( "/gml:Point/gml:pos/text()", nsContext );
    String pos = searchableXML.getRequiredNodeAsString( searchableXML.getRootElement(), xpath );
    String[] pair = pos.split( "\\s" );
    Assert.assertNotNull( Double.parseDouble( pair[0] ) );
    Assert.assertNotNull( Double.parseDouble( pair[1] ) );
}