AEMFormModel implements ComponentExporter { @Nullable public String getFormPath() { if (ADAPTIVE_FORM.equals(formType)){ return formRef; } else if (ADAPTIVE_DOCUMENT.equals(formType)) { if ("printChannel".equals(icChannel)) { return docRefPrint; } else return docRefWeb; } return null; }  @Nullable String getFormPath(); @Nullable String getGuidePath(); String getThemeRef(); Boolean getIsValidForm(); String getFormType(); @Nullable String getIcChannel(); String getWcmMode(); @Nonnull @Override String getExportedType();  }
@Test public void testGetFormPath() { AEMFormModel aemFormModel = getFormUnderTest(AEMFormModel.class, ADAPTIVE_FORM); assertEquals(GUIDE_RESOURCE, aemFormModel.getFormPath()); aemFormModel = getFormUnderTest(AEMFormModel.class, IC); assertEquals(IC_RESOURCE, aemFormModel.getFormPath()); }