### Question:
EdmAnnotationsImplProv implements EdmAnnotations { @Override public EdmAnnotationElement getAnnotationElement(final String name, final String namespace) { if (annotationElements != null) { for (EdmAnnotationElement element : annotationElements) { if (element.getName().equals(name) && element.getNamespace().equals(namespace)) { return element; } } } return null; } EdmAnnotationsImplProv(final List<AnnotationAttribute> annotationAttributes,
      final List<AnnotationElement> annotationElements); @Override List<EdmAnnotationElement> getAnnotationElements(); @Override EdmAnnotationElement getAnnotationElement(final String name, final String namespace); @Override List<EdmAnnotationAttribute> getAnnotationAttributes(); @Override EdmAnnotationAttribute getAnnotationAttribute(final String name, final String namespace);  }### Answer:
@Test public void testElement() { EdmAnnotationElement element = annotationsProvider.getAnnotationElement("elementName", "namespace"); assertEquals("elementName", element.getName()); assertEquals("namespace", element.getNamespace()); assertEquals("prefix", element.getPrefix()); assertEquals("xmlData", element.getText()); assertNull(element.getChildElements()); }
@Test public void testElementNull() { EdmAnnotationElement element = annotationsProvider.getAnnotationElement("elementNameWrong", "namespaceWrong"); assertNull(element); }