@Test
public void applicationJson_profileIncorrect_returns406() throws Exception {
// given
RestfulRequest request = client.createRequest(RestfulHttpMethod.GET, "objects/org.apache.isis.core.tck.dom.defaults.WithDefaultsEntity/55/properties/anInt");
request.withHeader(RestfulRequest.Header.ACCEPT, RepresentationType.USER.getMediaType());
// when
final RestfulResponse<VersionRepresentation> restfulResponse = request.executeT();
assertThat(restfulResponse.getStatus(), is(RestfulResponse.HttpStatusCode.NOT_ACCEPTABLE));