private EntityList createEntityList() {
   EntityList list = new EntityList();
   RESTResource rest = new RESTResource();
   rest.setResourceRoot("test.root");
   rest.setResourceURI("test.uri");
   rest.setAccessDate(new Date());
   list.setHeading(rest);
   list.setComplete(CompleteDirectory.fromValue("COMPLETE"));
   list.setSortCriteria(new SortCriteria());
   list.setNumEntries(1L);
   return list;
 }
    @Override
    public EntityList readEntityDescriptions(
        EntityNameOrURI entityId, ResolvedReadContext readContext) {
      EntityList entities = createEntityList();
      EntityListEntry entry = createEntityListEntry();

      if (entityId.getEntityName().getName().equals("test.name") && readContext != null) {
        entry.setResourceName("success");
      } else {
        entry.setResourceName("fail");
      }

      entities.addEntry(entry);
      return entities;
    }