I have got Content Fragment mock object as mentioned by @Theo_Pendle ,
but I got a problem at next level.My problem was -: I was not able to
get the variations from the contefragment's mocked resource which I had
set from AEM context. I was loading ContentFragment in the AEM context
like this in my test class. (1)
context.load().json(getClass().getResourceAsStream(CF_JSON_PATH),
CF_PATH); I was expecting that doing above will adapt to the
ContentFragment Object properly and we will get everythin...