Hi All,I have used delegate pattern to extend list core component in my
component sling model. @Self @Via(type = ResourceSuperType.class)
private List list;Collection listItems =
list.getListItems();When i use this pattern, i could not retrieve getter
methods from model class in junit using aem context request object. It
throws null pointer exception. Without this, i am able to access it.
Inside setup method:context.addModelsForClasses(CustomListImpl.class);
MockitoAnnotations.initMocks(this);
c...