private EntityDescriptionBase createEntityDescription() {
   EntityDescriptionBase entityDescription = new NamedEntityDescription();
   entityDescription.setAbout("test.about");
   CodeSystemVersionReference versionRef = new CodeSystemVersionReference();
   versionRef.setCodeSystem(new CodeSystemReference("test.codesystem"));
   NameAndMeaningReference nameRef = new NameAndMeaningReference("test.nameref");
   versionRef.setVersion(nameRef);
   entityDescription.setDescribingCodeSystemVersion(versionRef);
   URIAndEntityName uriAndEntityName = new URIAndEntityName();
   uriAndEntityName.setName("test.urientityname");
   uriAndEntityName.setNamespace("test");
   uriAndEntityName.setUri("http://my/uri");
   URIAndEntityName uriAndEntityNames[] = new URIAndEntityName[1];
   uriAndEntityNames[0] = uriAndEntityName;
   entityDescription.setEntityType(uriAndEntityNames);
   return entityDescription;
 }
    @Override
    public EntityDescription read(
        EntityDescriptionReadId identifier, ResolvedReadContext resolvedReadContext) {
      ScopedEntityName name = new ScopedEntityName();
      name.setNamespace("test");
      EntityDescriptionBase entityDescription = createEntityDescription();

      if (identifier.getEntityName().getName().equals("test")
          && identifier.getCodeSystemVersion().getName().equals("test.version")
          && resolvedReadContext != null) {
        name.setName("success");
      } else {
        name.setName("fail");
      }
      entityDescription.setEntityID(name);

      return ModelUtils.toEntityDescription(entityDescription);
    }