@@ -0,0 +1,1573 @@
+package org.fcrepo.integration.api;%0A%0Aimport org.apache.http.HttpResponse;%0Aimport org.apache.http.client.methods.HttpGet;%0Aimport org.apache.http.util.EntityUtils;%0Aimport org.junit.Test;%0A%0Aimport static java.util.regex.Pattern.compile;%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertTrue;%0A%0Apublic class FedoraDescribeIT extends AbstractResourceIT %7B%0A%0A%09@Test%0A%09public void testGetObjectInXML() throws Exception %7B%0A%09%09client.execute(postObjMethod(%22FedoraDescribeTest1%22));%0A%09%09final HttpGet getObjMethod =%0A%09%09%09%09new HttpGet(serverAddress + %22objects/FedoraDescribeTest1/fcr:describe%22);%0A%09%09final HttpResponse response = client.execute(getObjMethod);%0A%09%09assertEquals(200, response.getStatusLine().getStatusCode());%0A%09%09final String content = EntityUtils.toString(response.getEntity());%0A%09%09logger.debug(%22Retrieved object profile:%5Cn%22 + content);%0A%09%09assertTrue(%22Object had wrong PID!%22, compile(%0A%09%09%09%09%09%09%09%09%09%09%09%09%09%09   %22pid=%5C%22FedoraObjectsTest2%5C%22%22).matcher(content).find());%0A%09%7D%0A%0A%0A%09@Test%0A%09public void testGetDatastreamInXML() throws Exception %7B%0A%09%09client.execute(postObjMethod(%22FedoraDescribeTest2%22));%0A%09%09client.execute(postDSMethod(%22FedoraDescribeTest2%22, %22ds1%22, %22qwertypoiuytrewqadfghjklmnbvcxz%22));%0A%09%09final HttpGet getObjMethod =%0A%09%09%09%09new HttpGet(serverAddress + %22objects/FedoraDescribeTest2/ds1/fcr:describe%22);%0A%09%09final HttpResponse response = client.execute(getObjMethod);%0A%09%09assertEquals(200, response.getStatusLine().getStatusCode());%0A%09%09final String content = EntityUtils.toString(response.getEntity());%0A%09%09logger.debug(%22Retrieved datastream profile:%5Cn%22 + content);%0A%09%7D%0A%0A%0A%7D%0A

add IT for fcr:describe