Integer id = Integer.parseInt(split[split.length-1]);
ImportContext context = importer.getContext(id);
MockHttpServletRequest req = createRequest("/rest/imports/" + id + "/tasks/" + taskName);
req.setContentType(contentType);
req.addHeader("Content-Type", contentType);
req.setMethod("PUT");
req.setBodyContent(org.apache.commons.io.IOUtils.toByteArray(geotiffResourceStream));
resp = dispatch(req);
assertEquals(201, resp.getStatusCode());