nerdexam
Broadcom-VMware

2V0-72.22PSE · Question #61

2V0-72.22PSE Question #61: Real Exam Question with Answer & Explanation

The correct answer is B. @WithMockUser. See the full explanation below for the reasoning.

Question

In a Spring test, which annotation can be used to mock a user?

Options

  • A@MockAuthentication
  • B@WithMockUser
  • C@Mock
  • D@MockBean

Community Discussion

No community discussion yet for this question.

Full 2V0-72.22PSE Practice
In a Spring test, which annotation can be used to mock a user? | 2V0-72.22PSE Q#61 Answer | NerdExam