entityESAllPrim.addLink(
getFactory().newEntityNavigationLink("NavPropertyETTwoPrimOne", getClient().newURIBuilder(SERVICE_URI)
.appendEntitySetSegment("ESTwoPrim")
.appendKeySegment(-365)
.build()));
<BUG>final URIBuilder uriBuilder = getClient().newURIBuilder(SERVICE_URI).appendEntitySetSegment("ESAllPrim");
</BUG>
final ODataEntityCreateRequest<ClientEntity> createReq =
<BUG>getClient().getCUDRequestFactory().getEntityCreateRequest(uriBuilder.build(), entityESAllPrim);
createReq.setFormat(ContentType.JSON);
</BUG>
changeset.addRequest(createReq);

entityESAllPrim.addLink(
getFactory().newEntityNavigationLink("NavPropertyETTwoPrimOne", getClient().newURIBuilder(SERVICE_URI)
.appendEntitySetSegment("ESTwoPrim")
.appendKeySegment(-365)
.build()));
final URI uri = getClient().newURIBuilder(SERVICE_URI).appendEntitySetSegment("ESAllPrim").build();
final ODataEntityCreateRequest<ClientEntity> createReq =
getClient().getCUDRequestFactory().getEntityCreateRequest(uri, entityESAllPrim);
createReq.setFormat(getContentType());
changeset.addRequest(createReq);
