In the second test SecurityContext.getAgentInfo() ...
# mockk
d
In the second test SecurityContext.getAgentInfo() returns agentSession.