@Test
public void esAllPrim() throws Exception {

  final DataProvider data = new DataProvider(oData, edm);
  EntityCollection outSet = data.readAll(esAllPrim);
  Assert.assertEquals(4, outSet.getEntities().size());
  Entity first = outSet.getEntities().get(0);
  Assert.assertEquals(16, first.getProperties().size());
  Assert.assertEquals(2, first.getNavigationLinks().size());
  final EntityCollection target = first.getNavigationLink("NavPropertyETTwoPrimMany").getInlineEntitySet();
  Assert.assertNotNull(target);
  Assert.assertEquals(1, target.getEntities().size());
  Assert.assertEquals(data.readAll(entityContainer.getEntitySet("ESTwoPrim")).getEntities().get(1),
      target.getEntities().get(0));
  Assert.assertEquals(16, outSet.getEntities().get(1).getProperties().size());
  Assert.assertEquals(16, outSet.getEntities().get(2).getProperties().size());
}