### Question:
AbstractResourceAttribute extends TextAttribute implements IReferenceableAttribute, ResourceAttributeInterface { @Override public void setMetadata(String key, String langCode, String value) { Map<String, String> map = this.getMetadataMap(key, true); map.put(langCode, value); } AbstractResourceAttribute(); @Override String getResourceAlt(); @Override String getResourceAltForLang(String langCode); @Override String getResourceDescription(); @Override String getResourceDescriptionForLang(String langCode); @Override String getResourceLegend(); @Override String getResourceLegendForLang(String langCode); @Override String getResourceTitle(); @Override String getResourceTitleForLang(String langCode); Map<String, Map<String, String>> getMetadatas(); void setMetadatas(Map<String, Map<String, String>> metadatas); void setMetadataMap(String key, Map<String, String> map); @Override String getMetadataForLang(String key, String langCode); @Override String getMetadata(String key); @Override void setMetadata(String key, String langCode, String value); Map<String, String> getResourceAltMap(); Map<String, String> getResourceDescriptionMap(); Map<String, String> getResourceLegendMap(); Map<String, String> getResourceTitleMap(); @Override Object getAttributePrototype(); @Override void setResource(ResourceInterface resource, String langCode); @Override ResourceInterface getResource(String langCode); @Override ResourceInterface getResource(); @Override boolean isSearchable(); @Override boolean isSearchableOptionSupported(); @Override Element getJDOMElement(); @Override List<CmsAttributeReference> getReferences(List<Lang> systemLangs); @Override Object getValue(); @Override AbstractJAXBAttribute getJAXBAttribute(String langCode); @Override void valueFrom(AbstractJAXBAttribute jaxbAttribute, String langCode); @Override Status getStatus(); Map<String, ResourceInterface> getResources(); void setConfigManager(ConfigInterface configManager); void setResourceManager(IResourceManager resourceManager);  }### Answer:
@Test public void getJDOMElement_1() throws Exception { this.imageAttribute.setMetadata("metadata_key_1", "en", "metadata_value_1"); this.imageAttribute.setMetadata("metadata_key_2", "en", "metadata_value_2"); this.testGetJDOMElement(true); }