*/
@Test
public void testGetAccept() throws IOException, JSONException {
//first a normal request with application/rdf+xml
String id = "http://dbpedia.org/resource/Paris";
RequestExecutor re = executor.execute(
builder.buildGetRequest(DBPEDIA_SITE_PATH+"/entity",
"id",id)
.withHeader("Accept", "application/rdf+xml"));
re.assertStatus(200);
re.assertContentType("application/rdf+xml");
re.assertContentContains(
"<rdf:Description rdf:about=\"http://dbpedia.org/resource/Paris\">",
"<rdfs:label xml:lang=\"en\">Paris</rdfs:label>");
//now test the default Accept
re = executor.execute(
builder.buildGetRequest(DBPEDIA_SITE_PATH+"/entity",
"id",id));
re.assertContentType("application/json");
re.assertStatus(200);
assertEntity(re.getContent(), id, DBPEDIA_SITE_ID);
}