AEM Java unit test , adapt resource without jcr:title to model ? In an AEM Java unit test , is it possible to adapt a resource without jcr:title to a model ?In example below , testEmptyPage() is behaving as expected , but testEmptyPageMissingTitle() is not behaving as expected because it sets pageBean to null ?In an AEM Java unit test , how can I adapt a resource without jcr:title to a model ?Thank you and best regards.********** MyPageBeanModelTest.java **********@RunWith(MockitoJUnitRunner.class)
public class MyPageBeanModelTest {
@1227241
public final AemContext context = new AemContext();
@Mock
private LiveRelationshipManager liveRelationshipManager;
@Before
public void setUp() {
context.load().json("/mockedJCR/models/structure/page/empty-page.json", "/content/myproject/en/empty-page");
context.load().json("/mockedJCR/models/structure/page/empty-page-missing-title.json", "/content/myproject/en/empty-page-missing-title");
context.registerService(LiveRelationshipManager.class, liveRelationshipMana