@Test
public void testURIInput()
                        throws MalformedURLException, OWSExceptionReport, IOException, XMLStreamException,
                        InterruptedException, URISyntaxException {

    String demoWPSURL = TestProperties.getProperty( "demo_wps_authentication_url" );
    String demoWPSProcessName = TestProperties.getProperty( "demo_wps_authentication_process_name" );
    String demoWPSInputParam = TestProperties.getProperty( "demo_wps_input_uri" );
    Assume.assumeNotNull( demoWPSURL );
    Assume.assumeNotNull( demoWPSProcessName );
    Assume.assumeNotNull( demoWPSInputParam );
    URL serviceUrl = new URL( demoWPSURL );
    URI inputUri = new URI( demoWPSInputParam );
    WPSClient wpsClient = new WPSClient( serviceUrl );
    Process proc = wpsClient.getProcess( demoWPSProcessName, null );
    ProcessExecution execution = proc.prepareExecution();
    execution.addBinaryInput( "infile", null, inputUri, true, null, null );
    execution.execute();
    while ( execution.getState() != ExecutionState.SUCCEEDED && execution.getState() != ExecutionState.FAILED ) {
        System.out.println( String.format( "%s, %d, %s", execution.getState(), execution.getPercentCompleted(),
                                           execution.getStatusLocation() ) );
        Thread.sleep( 500 );
    }
    ExecutionOutputs outputs = execution.getOutputs();
    Assert.assertTrue( outputs.getAll().length > 0 );
}