### Question:
StandardScriptEngineManager extends ScriptEngineManager { public void setConfiguration(ScriptEngineConfiguration newConfiguration) { Reject.ifNull(newConfiguration); synchronized (listeners) { this.configuration = newConfiguration; for (final ConfigurationListener listener : listeners) { try { listener.onConfigurationChange(newConfiguration); } catch (RuntimeException ex) { LOGGER.error("Script configuration listener failed with exception", ex); } } } } @Inject  StandardScriptEngineManager(); void setConfiguration(ScriptEngineConfiguration newConfiguration); ScriptEngineConfiguration getConfiguration(); boolean addConfigurationListener(ConfigurationListener listener); boolean removeConfigurationListener(ConfigurationListener listener);  }### Answer:
@Test public void shouldBroadcastConfigChangesToAllListeners() { ScriptEngineConfiguration newConfiguration = getTestConfiguration(); List<TestConfigurationListener> listeners = registerListeners(100); testManager.setConfiguration(newConfiguration); for (TestConfigurationListener listener : listeners) { assertThat(listener.configuration).isEqualTo(newConfiguration); } }