assertEquals(Status.SUCCESS_OK, responseGett.getStatus());
if (responseHead.getStatus().isError()) {
System.out.println(responseHead.getEntity().getText());
}
assertEquals(Status.SUCCESS_OK, responseHead.getStatus());
final Representation entityGett = responseGett.getEntity();
final Representation entityHead = responseHead.getEntity();
assertNotNull(entityGett);
assertNotNull("Must not be null to read the entity headers", entityHead);
assertEqualMediaType(MediaType.TEXT_PLAIN, entityGett.getMediaType());
assertEqualMediaType(MediaType.TEXT_PLAIN, entityHead.getMediaType());
assertEquals("4711", entityGett.getText());
assertEquals("The entity text of the head request must be null", null,
entityHead.getText());
}