SyntaxFix
Write A Post
Hire A Developer
Questions
In case you use Spring Test try org.springframework.test.util.ReflectionTestUtils
ReflectionTestUtils.setField(testObject, "person", mockedPerson);