FormStructureHelperImpl implements FormStructureHelper { @Override public boolean canManage(Resource resource) { return getFormResource(resource) != null; }  @Override Resource getFormResource(Resource resource); @Override Iterable<Resource> getFormElements(Resource resource); @Override boolean canManage(Resource resource); @Override Resource updateFormStructure(Resource formResource);  }
@Test public void testCanManage() { Resource resource = context.resourceResolver().getResource(CONTAINING_PAGE + "/jcr:content/root/responsivegrid/start"); assertFalse(formStructureHelper.canManage(resource)); resource = context.resourceResolver().getResource(CONTAINING_PAGE + "/jcr:content/root/responsivegrid/container/text"); assertTrue(formStructureHelper.canManage(resource)); resource = context.resourceResolver().getResource(CONTAINING_PAGE + "/jcr:content/root/responsivegrid/container"); assertTrue(formStructureHelper.canManage(resource)); }