@KajalInamdarEy Isn't the following line setting up the contentFragment field value in test?
PrivateAccessor.setField(underTest, "contentFragment", coreCf);
I can run the test class you provided and noticed that the contentFragment value is set, but getting a different error though - java.lang.I...