code: protected CmsResource createFakeBinaryFile(String rootPath, long dateLastModified) throws CmsLoaderException {
  
          CmsUUID structureId = CmsUUID.getConstantUUID("s-" + rootPath);
          CmsUUID resourceId = CmsUUID.getConstantUUID("r-" + rootPath);
          @SuppressWarnings("deprecation")
          int type = OpenCms.getResourceManager().getResourceType(CmsResourceTypeBinary.getStaticTypeName()).getTypeId();
          boolean isFolder = false;
          int flags = 0;
          CmsUUID projectId = CmsProject.ONLINE_PROJECT_ID;
          CmsResourceState state = CmsResource.STATE_UNCHANGED;
          long dateCreated = 0;
          long dateReleased = 1;
          long dateContent = 1;
          int version = 0;
  
          CmsUUID userCreated = CmsUUID.getNullUUID();
          CmsUUID userLastModified = CmsUUID.getNullUUID();
          long dateExpired = Integer.MAX_VALUE;
          int linkCount = 0;
          int size = 1;
  
          CmsResource resource = new CmsResource(
              structureId,
              resourceId,
              rootPath,
              type,
              isFolder,
              flags,
              projectId,
              state,
              dateCreated,
              userCreated,
              dateLastModified,
              userLastModified,
              dateReleased,
              dateExpired,
              linkCount,
              size,
              dateContent,
              version);
          return resource;
      }
docs: Creates a fake CmsResource of type 'binary'.<p>
  
  @param rootPath  the root path
  @param dateLastModified the last modification date to use
  
  @return the fake resource
  
  @throws CmsLoaderException if the binary type is missing