code: public Deployment deploy(final RepositoryService repositoryService){
      return new DeployProcess(repositoryService).apply(processId, flowNodeBuilder.endEvent("end").done());
    }
docs: This will deploy the mock process.