Below is my original class
@reference
private ResourceResolverFactory resourceResolverFactory;
@reference
private WorkflowService workflowService;
How can I mock the above?
I tried something like below:
@Mock
WorkflowService workflowServiceMock;
then
workflowServiceMock = context.registerInjectActivateService(workflowServiceMock);
But it throws NullPointerException