EditorTreeProvider implements PermissionTreeProvider { @Override public void loadChildren(final PermissionNode parent, final LoadOptions options, final LoadCallback callback) { if (parent.getNodeName().equals(rootNodeName)) { callback.afterLoad(buildEditorNodes(options)); } } EditorTreeProvider(); @Inject  EditorTreeProvider(final ActivityBeansCache activityBeansCache,
                              final SyncBeanManager iocManager,
                              final PermissionManager permissionManager,
                              final PermissionTreeI18n i18n); @Override PermissionNode buildRootNode(); @Override void loadChildren(final PermissionNode parent,
                             final LoadOptions options,
                             final LoadCallback callback); int getRootNodePosition(); void setRootNodePosition(int rootNodePosition); void registerEditor(final String editorId,
                               final String editorName);  }
@Test public void testEmpty() { final DefaultLoadOptions options = new DefaultLoadOptions(); provider.loadChildren(root, options, children -> assertEquals(children.size(), 0)); }