Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Question 7 of 83
Free Preview · 83 of 275 · questions 1–83 of 275 are free. Sign up free to sync your progress across devices.
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
You need to set a mock.
The Test.setMock method is used to set up the mock response for the callout. This way, the test method doesn't actually make a real web service callout and will not generate an error.
B is the correct answer.