HttpClient client = new HttpClient();
//File file = new File(SRC_ROOT + "harper.jpg");
File file = LocateTestData.getTestData("harper.jpg");
Assert.assertTrue(file.exists());
PostMethod method = new PostMethod(TEST_URI);
method.setRequestEntity(new FileRequestEntity(file, "image/jpeg"));
int status = client.executeMethod(method);
Assert.assertEquals(HttpServletResponse.SC_OK, status);
InputStream response = method.getResponseBodyAsStream();
BufferedInputStream in = new BufferedInputStream(response);
String contentType = method.getResponseHeader("content-type").getValue();