ExperimentalActivitiesAuthorizationManagerImpl implements ExperimentalActivitiesAuthorizationManager { public void onFeatureModified(@Observes PortableExperimentalFeatureModifiedEvent event) { onFeatureModified(event.getFeature()); } @Inject  ExperimentalActivitiesAuthorizationManagerImpl(SyncBeanManager iocManager, ClientExperimentalFeaturesRegistryService experimentalFeaturesRegistryService, Event<PerspectiveVisibiltiyChangeEvent> perspectiveVisibleEvent);   ExperimentalActivitiesAuthorizationManagerImpl(SyncBeanManager iocManager, ClientExperimentalFeaturesRegistryService experimentalFeaturesRegistryService, Event<PerspectiveVisibiltiyChangeEvent> perspectiveVisibleEvent, Supplier<String> uniqueIdSupplier); void init(); @Override boolean authorizeActivity(Object activity); @Override boolean authorizeActivityClass(Class activityClass); @Override void securePart(PartDefinition part, PanelDefinition panel); @Override boolean authorizeActivityId(final String activityId); void onFeatureModified(@Observes PortableExperimentalFeatureModifiedEvent event); void onFeatureModified(@Observes NonPortableExperimentalFeatureModifiedEvent event);  }
@Test public void testOnFeatureModifiedEvent() { testOnFeatureModified(feature -> authorizationManager.onFeatureModified(new NonPortableExperimentalFeatureModifiedEvent(feature))); }
@Test public void testOnFeatureModifiedGlobalEvent() { testOnFeatureModified(feature -> authorizationManager.onFeatureModified(new PortableExperimentalFeatureModifiedEvent(feature))); }