Please find the below sample code .How to write Junit for workflow public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap) { ResourceResolver resourceResolver = null; try {Session session = workflowSession.adaptTo(Session.class);Map<String, ...