### Question:
AnnotationEdmProvider extends EdmProvider { @Override public EntityContainerInfo getEntityContainerInfo(final String name) throws ODataException { EntityContainer container = name2Container.get(name); if (container == null) { container = defaultContainer; } if (container != null) { EntityContainerInfo info = new EntityContainerInfo(); info.setName(container.getName()); info.setDefaultEntityContainer(container.isDefaultEntityContainer()); info.setExtendz(container.getExtendz()); info.setAnnotationAttributes(container.getAnnotationAttributes()); info.setAnnotationElements(container.getAnnotationElements()); return info; } return null; } AnnotationEdmProvider(final Collection<Class<?>> annotatedClasses);  AnnotationEdmProvider(final String packageToScan); @Override Association getAssociation(final FullQualifiedName edmFQName); @Override AssociationSet getAssociationSet(final String entityContainer, final FullQualifiedName association,
      final String sourceEntitySetName, final String sourceEntitySetRole); @Override ComplexType getComplexType(final FullQualifiedName edmFQName); @Override EntityContainerInfo getEntityContainerInfo(final String name); @Override EntitySet getEntitySet(final String entityContainer, final String name); @Override EntityType getEntityType(final FullQualifiedName edmFQName); @Override FunctionImport getFunctionImport(final String entityContainer, final String name); @Override List<Schema> getSchemas();  }### Answer:
@Test public void defaultContainerNameGeneration() throws ODataException { @SuppressWarnings({ "unchecked", "rawtypes" }) AnnotationEdmProvider localAep = new AnnotationEdmProvider((Collection) Arrays.asList(GeneratedNamesTestClass.class)); EntityContainerInfo containerInfo = localAep.getEntityContainerInfo(null); assertNotNull(containerInfo); assertEquals("DefaultContainer", containerInfo.getName()); }
@Test public void defaultContainerNameDefined() throws ODataException { @SuppressWarnings({ "unchecked", "rawtypes" }) AnnotationEdmProvider localAep = new AnnotationEdmProvider((Collection) Arrays.asList(DefinedNamesTestClass.class)); EntityContainerInfo containerInfo = localAep.getEntityContainerInfo(null); assertNotNull(containerInfo); assertEquals("MyTestContainer", containerInfo.getName()); }
@Test public void defaultContainerNameGeneration() throws ODataException { @SuppressWarnings({ "unchecked", "rawtypes" }) AnnotationEdmProvider localAep = new AnnotationEdmProvider(Collections.singletonList(GeneratedNamesTestClass.class)); EntityContainerInfo containerInfo = localAep.getEntityContainerInfo(null); assertNotNull(containerInfo); assertEquals("DefaultContainer", containerInfo.getName()); }
@Test public void defaultContainerNameDefined() throws ODataException { @SuppressWarnings({ "unchecked", "rawtypes" }) AnnotationEdmProvider localAep = new AnnotationEdmProvider((Collection) Collections.singletonList(DefinedNamesTestClass.class)); EntityContainerInfo containerInfo = localAep.getEntityContainerInfo(null); assertNotNull(containerInfo); assertEquals("MyTestContainer", containerInfo.getName()); }