@Test
  public void formal_accepted() throws Exception {

    request.withArg(RequestParameter.DOMAIN_MODEL, "formal");
    final RestfulResponse<ListRepresentation> restfulResponse = request.executeT();

    assertThat(restfulResponse.getStatus(), is(HttpStatusCode.OK));
  }
  @Test
  public void simple_rejected() throws Exception {

    request.withArg(RequestParameter.DOMAIN_MODEL, "simple");
    final RestfulResponse<ListRepresentation> restfulResponse = request.executeT();

    assertThat(restfulResponse.getStatus(), is(HttpStatusCode.BAD_REQUEST));
    assertThat(
        restfulResponse.getHeader(RestfulResponse.Header.WARNING),
        is("x-ro-domain-model of 'simple' is not supported"));
  }
  @Test
  public void applicationJson_profileIncorrect_returns406() throws Exception {

    // given
    final RestfulRequest request = client.createRequest(RestfulHttpMethod.GET, "user");
    request.withHeader(RestfulRequest.Header.ACCEPT, RepresentationType.VERSION.getMediaType());

    // when
    final RestfulResponse<UserRepresentation> restfulResponse = request.executeT();

    // then
    assertThat(restfulResponse.getStatus(), is(RestfulResponse.HttpStatusCode.NOT_ACCEPTABLE));
  }