AuthenticationConfigurationImpl extends ConfigurationBase implements AuthenticationConfiguration, LoginModuleStatsCollector { @Override public void setLoginModuleMonitor(@NotNull LoginModuleMonitor lmMonitor) { this.lmMonitor = lmMonitor; } @SuppressWarnings("UnusedDeclaration")  AuthenticationConfigurationImpl();  AuthenticationConfigurationImpl(SecurityProvider securityProvider); @NotNull @Override String getName(); @NotNull @Override LoginContextProvider getLoginContextProvider(@NotNull ContentRepository contentRepository); @Override void setLoginModuleMonitor(@NotNull LoginModuleMonitor lmMonitor);  }
@Test public void testSetLoginModuleMonitor() throws Exception { Field f = AuthenticationConfigurationImpl.class.getDeclaredField("lmMonitor"); f.setAccessible(true); assertSame(LoginModuleMonitor.NOOP, f.get(authConfiguration)); LoginModuleMonitor monitor = mock(LoginModuleMonitor.class); authConfiguration.setLoginModuleMonitor(monitor); assertSame(monitor, f.get(authConfiguration)); }