### Question:
JPAEdmMappingModelService implements JPAEdmMappingModelAccess { @Override public String mapJPAEmbeddableTypeAttribute(final String jpaEmbeddableTypeName, final String jpaAttributeName) { JPAEmbeddableTypeMapType jpaEmbeddableType = searchJPAEmbeddableTypeMapType(jpaEmbeddableTypeName); if (jpaEmbeddableType != null && jpaEmbeddableType.getJPAAttributes() != null) { for (JPAAttribute jpaAttribute : jpaEmbeddableType.getJPAAttributes().getJPAAttribute()) { if (jpaAttribute.getName().equals(jpaAttributeName)) { return jpaAttribute.getValue(); } } } return null; } JPAEdmMappingModelService(final ODataJPAContext ctx); @Override void loadMappingModel(); @Override boolean isMappingModelExists(); @Override JPAEdmMappingModel getJPAEdmMappingModel(); @Override String mapJPAPersistenceUnit(final String persistenceUnitName); @Override String mapJPAEntityType(final String jpaEntityTypeName); @Override String mapJPAEntitySet(final String jpaEntityTypeName); @Override String mapJPAAttribute(final String jpaEntityTypeName, final String jpaAttributeName); @Override String mapJPARelationship(final String jpaEntityTypeName, final String jpaRelationshipName); @Override String mapJPAEmbeddableType(final String jpaEmbeddableTypeName); @Override String mapJPAEmbeddableTypeAttribute(final String jpaEmbeddableTypeName, final String jpaAttributeName); @Override boolean checkExclusionOfJPAEntityType(final String jpaEntityTypeName); @Override boolean checkExclusionOfJPAAttributeType(final String jpaEntityTypeName, final String jpaAttributeName); @Override boolean checkExclusionOfJPAEmbeddableType(final String jpaEmbeddableTypeName); @Override boolean checkExclusionOfJPAEmbeddableAttributeType(final String jpaEmbeddableTypeName,
      final String jpaAttributeName);  }### Answer:
@Test public void testMapJPAEmbeddableTypeAttribute() { assertEquals(EMBEDDABLE_ATTRIBUTE_NAME_EDM, objJPAEdmMappingModelServiceTest.mapJPAEmbeddableTypeAttribute( EMBEDDABLE_TYPE_NAME_JPA, EMBEDDABLE_ATTRIBUTE_NAME_JPA)); }
@Test public void testMapJPAEmbeddableTypeAttributeNegative() { assertNull(objJPAEdmMappingModelServiceTest.mapJPAEmbeddableTypeAttribute(EMBEDDABLE_TYPE_NAME_JPA_WRONG, EMBEDDABLE_ATTRIBUTE_NAME_JPA)); }