@InjectMocks annotation is used to inject mock fields into the tested object automatically.
Previous Question Next Question
Your comments will be displayed only after manual approval.