### Question:
EdmEntityContainerImplProv implements EdmEntityContainer, EdmAnnotatable { @Override public List<EdmEntitySet> getEntitySets() throws EdmException { try { List<EdmEntitySet> edmEntitySetsList = new ArrayList<EdmEntitySet>(); List<EntityContainer> entityContainerHierachyList = getEntityContainerHierachy(); for (EntityContainer entityContainer : entityContainerHierachyList) { List<EntitySet> entitySets = entityContainer.getEntitySets(); for (EntitySet entitySet : entitySets) { EdmEntitySet ees = createEntitySet(entitySet); edmEntitySetsList.add(ees); } } return edmEntitySetsList; } catch (ODataException e) { throw new EdmException(EdmException.PROVIDERPROBLEM, e); } } EdmEntityContainerImplProv(final EdmImplProv edm, final EntityContainerInfo entityContainerInfo); @Override String getName(); @Override EdmEntitySet getEntitySet(final String name); @Override EdmFunctionImport getFunctionImport(final String name); @Override EdmAssociationSet getAssociationSet(final EdmEntitySet sourceEntitySet,
      final EdmNavigationProperty navigationProperty); @Override boolean isDefaultEntityContainer(); @Override EdmAnnotations getAnnotations(); @Override List<EdmEntitySet> getEntitySets(); @Override List<EdmAssociationSet> getAssociationSets(); @Override String getNamespace();  }### Answer:
@Test public void testGetEntitySets() throws EdmException { List<EdmEntitySet> entitySets = edmEntityContainer.getEntitySets(); assertNotNull(entitySets); assertEquals(3, entitySets.size()); for (EdmEntitySet entitySet : entitySets) { String name = entitySet.getName(); boolean expectedName = "fooFromParent".equals(name) || "foo".equals(name) || "bar".equals(name); assertTrue("Found not expected name: " + name, expectedName); } }