final WPSResourceManager resourceManager = new WPSResourceManager();
// Creates the new process for the download
DownloadProcess downloadProcess = new DownloadProcess(getGeoServer(), limits,
resourceManager);
// ROI
Polygon roi = (Polygon) new WKTReader2()
.read("POLYGON (( -127.57473954542964 54.06575021619523, -130.88669845369998 52.00807146727025, -129.50812897394974 49.85372324691927, -130.5300633861675 49.20465679591609, -129.25955033314003 48.60392508062591, -128.00975216684665 50.986137055052474, -125.8623089087404 48.63154492960477, -123.984159178178 50.68231871628503, -126.91186316993704 52.15307567440926, -125.3444367403868 53.54787804784162, -127.57473954542964 54.06575021619523 ))");
roi.setSRID(4326);
try {
// Download the data with ROI. It should throw an exception