### Question:
EdmEntityContainerImplProv implements EdmEntityContainer, EdmAnnotatable { @Override public EdmEntitySet getEntitySet(final String name) throws EdmException { EdmEntitySet edmEntitySet = edmEntitySets.get(name); if (edmEntitySet != null) { return edmEntitySet; } EntitySet entitySet; try { entitySet = edm.edmProvider.getEntitySet(entityContainerInfo.getName(), name); } catch (ODataException e) { throw new EdmException(EdmException.PROVIDERPROBLEM, e); } if (entitySet != null) { edmEntitySet = createEntitySet(entitySet); } else if (edmExtendedEntityContainer != null) { edmEntitySet = edmExtendedEntityContainer.getEntitySet(name); if (edmEntitySet != null) { edmEntitySets.put(name, edmEntitySet); } } return edmEntitySet; } 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 testEntitySetCache() throws EdmException { assertEquals(edmEntityContainer.getEntitySet("foo"), edmEntityContainer.getEntitySet("foo")); assertNotSame(edmEntityContainer.getEntitySet("foo"), edmEntityContainer.getEntitySet("bar")); }