String inResource, String expectedResource) throws Exception {
File input = new File(getClass().getResource(inResource).toURI());
PostMethod post = new PostMethod(endpointAddress);
post.setRequestHeader("Content-Type", contentType);
RequestEntity entity = new FileRequestEntity(input, "text/xml");
post.setRequestEntity(entity);
HttpClient httpclient = new HttpClient();
try {
int result = httpclient.executeMethod(post);