Unit testing Sling Model that has similar code as of a core component (ContentFragmentListImpl) I want to unit test the following Sling model, which has similar code as of the core component ContentFragmentListImpl. I tried to understand the unit test for ContentFragmentListImpl, but failed to do so. Any help is much appreciated. Here is the code for the Sling model: @Model( adaptables = {SlingHttpServletRequest.class, Resource.class},
adapter = {
CameraCardsList.class,
ComponentExporter.class
},
resourceType = {CameraCardsListImpl.RESOURCE_TYPE_V1, CameraCardsListImpl.RESOURCE_TYPE_V2}
)
@Exporter()
public class CameraCardsListImpl extends AbstractComponentImpl implements CameraCardsList {
public static final String RESOURCE_TYPE_V1 = "core/wcm/components/contentfragmentlist/v1/contentfragmentlist"
public static final String RESOURCE_TYPE_V2 = "core/wcm/components/contentfragmentlist/v2/contentfragmentlist"
@Self(injectionStrategy = InjectionStrategy.REQUIRED)
private SlingHttpServletRequest slingHttpServletRequ