@Override
public HTTPResponse post(URL url, InputStream postContent, String postContentType) throws IOException {
String request = new String(IOUtils.toByteArray(postContent), "UTF-8");
if (!postContentType.isEmpty())
{
return new MockHttpResponse(TestData.getResource(this, "arcgisserver/GetFeaturesResult.xml"), "text/xml");
}
else
{
return super.post(url, new ByteArrayInputStream(request.getBytes("UTF-8")), postContentType);
}