private void rawRequest(final ContentType contentType) {
    final URIBuilder uriBuilder =
        client.newURIBuilder(testStaticServiceRootURL).appendEntitySetSegment("People");

    final ODataRawRequest req =
        client.getRetrieveRequestFactory().getRawRequest(uriBuilder.build());
    req.setFormat(contentType.toContentTypeString());

    final ODataRawResponse res = req.execute();
    assertNotNull(res);

    final ResWrap<ClientEntitySet> entitySet = res.getBodyAs(ClientEntitySet.class);
    assertNotNull(entitySet.getPayload());
    assertTrue(entitySet.getContextURL().toASCIIString().endsWith("$metadata#People"));
  }
  private void readWithInlineCount(final ODataClient client, final ContentType contentType) {
    final URIBuilder uriBuilder =
        client.newURIBuilder(testStaticServiceRootURL).appendEntitySetSegment("People").count(true);

    final ODataRawRequest req =
        client.getRetrieveRequestFactory().getRawRequest(uriBuilder.build());
    req.setFormat(contentType.toContentTypeString());

    final ODataRawResponse res = req.execute();
    assertNotNull(res);

    final ResWrap<ClientEntitySet> entitySet = res.getBodyAs(ClientEntitySet.class);
    assertEquals(5, entitySet.getPayload().getEntities().size());

    assertEquals(
        "Microsoft.Test.OData.Services.ODataWCFService.Address",
        entitySet
            .getPayload()
            .getEntities()
            .get(2)
            .getProperty("HomeAddress")
            .getComplexValue()
            .getTypeName());
  }