### Question:
EdmxProvider extends EdmProvider { @Override public Association getAssociation(final FullQualifiedName edmFQName) throws ODataException { for (Schema schema : dataServices.getSchemas()) { if (schema.getNamespace().equals(edmFQName.getNamespace())) { for (Association association : schema.getAssociations()) { if (association.getName().equals(edmFQName.getName())) { return association; } } } } 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 nullAnnotationsAtAssociation() throws Exception { Edm edm = createEdm(); assertNotNull(edm); EdmAnnotations annotations = edm.getAssociation("Self", "BuildingRooms").getAnnotations(); checkNullAnnotations(annotations); }
@Test public void testAssociation() throws Exception { Edm edm = createEdm(); assertNotNull(edm); FullQualifiedName fqNameAssociation = new FullQualifiedName("RefScenario", "BuildingRooms"); EdmProvider testProvider = new EdmTestProvider(); EdmImplProv edmImpl = (EdmImplProv) edm; Association association = edmImpl.getEdmProvider().getAssociation(fqNameAssociation); Association testAssociation = testProvider.getAssociation(fqNameAssociation); assertEquals(testAssociation.getName(), association.getName()); assertEquals(testAssociation.getEnd1().getMultiplicity(), association.getEnd1().getMultiplicity()); assertEquals(testAssociation.getEnd2().getRole(), association.getEnd2().getRole()); assertEquals(testAssociation.getEnd1().getType(), association.getEnd1().getType()); }