.withOAuth2Credential(credential)
.withEndpoint(testHttpServer.getServerUrl())
.withNetworkCode("TEST_NETWORK_CODE")
.build();
CompanyServiceInterface companyService =
new DfpServices().get(session, CompanyServiceInterface.class);
List<Company> companies = companyService.createCompanies(Lists.newArrayList(new Company()));
assertEquals(1234L, companies.get(0).getId().longValue());
assertEquals(SoapRequestXmlProvider.getOAuth2SoapRequest(API_VERSION),
testHttpServer.getLastRequestBody());
assertEquals("Bearer TEST_ACCESS_TOKEN", testHttpServer.getLastAuthorizationHttpHeader());