### Question:
EdmxProvider extends EdmProvider { @Override public EntityContainerInfo getEntityContainerInfo(final String name) throws ODataException { if (name != null) { for (Schema schema : dataServices.getSchemas()) { for (EntityContainer container : schema.getEntityContainers()) { if (container.getName().equals(name)) { return container; } } } } else { for (Schema schema : dataServices.getSchemas()) { for (EntityContainer container : schema.getEntityContainers()) { if (container.isDefaultEntityContainer()) { return container; } } } } return null; }  EdmxProvider parse(final InputStream in, final boolean validate); @Override EntityContainerInfo getEntityContainerInfo(final String name); @Override EntityType getEntityType(final FullQualifiedName edmFQName); @Override ComplexType getComplexType(final FullQualifiedName edmFQName); @Override Association getAssociation(final FullQualifiedName edmFQName); @Override EntitySet getEntitySet(final String entityContainer, final String name); @Override AssociationSet getAssociationSet(final String entityContainer, final FullQualifiedName association,
      final String sourceEntitySetName, final String sourceEntitySetRole); @Override FunctionImport getFunctionImport(final String entityContainer, final String name); @Override List<Schema> getSchemas(); @Override List<AliasInfo> getAliasInfos();  }### Answer:
@Test public void testContainer() throws Exception { EdmProvider testProvider = new EdmTestProvider(); Edm edm = createEdm(); assertNotNull(edm); EdmImplProv edmImpl = (EdmImplProv) edm; EntityContainerInfo container = edmImpl.getEdmProvider().getEntityContainerInfo("Container2"); EntityContainerInfo testContainer = testProvider.getEntityContainerInfo("Container2"); assertEquals(testContainer.getName(), container.getName()); assertEquals(testContainer.isDefaultEntityContainer(), container.isDefaultEntityContainer()); container = edmImpl.getEdmProvider().getEntityContainerInfo(null); testContainer = testProvider.getEntityContainerInfo(null); assertNotNull(container); assertEquals(testContainer.getName(), container.getName()); assertEquals(testContainer.isDefaultEntityContainer(), container.isDefaultEntityContainer()); }