ProgressListener listener = new DefaultProgressListener();
p.execute(inputs, listener);
fail("Should have thrown a WPSException");
} catch (ProcessException processException) {
PyException pyException = (PyException) processException.getCause();
WPSException e = (WPSException) pyException.getCause();
assertEquals("Forbidden", e.getMessage());
assertEquals("userInput", e.getCode());
assertEquals("distance", e.getLocator());
}
}