RealmManagerImpl extends StateGuardLifecycleSupport implements RealmManager { @Subscribe public void on(final RealmConfigurationEvent event) { if (!event.isLocal()) { changeConfiguration(event.getConfiguration(), false); } } @Inject  RealmManagerImpl(
      final BeanLocator beanLocator,
      final EventManager eventManager,
      final RealmConfigurationStore store,
      @Named("initial") final Provider<RealmConfiguration> defaults,
      final RealmSecurityManager realmSecurityManager,
      final Map<String, Realm> availableRealms); @Override RealmConfiguration newEntity(); @Override @Guarded(by = STARTED) RealmConfiguration getConfiguration(); @Override @Guarded(by = STARTED) void setConfiguration(final RealmConfiguration configuration); @Override boolean isRealmEnabled(final String realmName); @Override void enableRealm(final String realmName, final boolean enable); @Override void enableRealm(final String realmName); @Override void disableRealm(final String realmName); @Subscribe void on(final RealmConfigurationEvent event); @Subscribe void onEvent(final UserPrincipalsExpired event); @Subscribe void onEvent(final AuthorizationConfigurationChanged event); @Subscribe void onEvent(final UserPasswordChanged event); @Override List<SecurityRealm> getAvailableRealms();  }
@Test public void testOnStoreChanged_LocalEvent() { when(configEvent.isLocal()).thenReturn(true); manager.on(configEvent); verifyZeroInteractions(eventManager, configStore); }