### Question:
StandardScriptEngineManager extends ScriptEngineManager { public ScriptEngineConfiguration getConfiguration() { return configuration; } @Inject  StandardScriptEngineManager(); void setConfiguration(ScriptEngineConfiguration newConfiguration); ScriptEngineConfiguration getConfiguration(); boolean addConfigurationListener(ConfigurationListener listener); boolean removeConfigurationListener(ConfigurationListener listener);  }### Answer:
@Test public void shouldEnsureLastUpdatedConfigurationIsLastBroadcastConfiguration() throws Exception { ExecutorService threadPool = Executors.newCachedThreadPool(); List<TestConfigurationListener> listeners = registerListeners(100); final int numPublishers = 10; final CyclicBarrier barrier = new CyclicBarrier(numPublishers + 1); for (int i = 0; i < numPublishers; ++i) { threadPool.execute(new TestConfigurationPublisher(i, barrier)); } barrier.await(); barrier.await(); threadPool.shutdownNow(); for (TestConfigurationListener listener : listeners) { assertThat(listener.configuration).isEqualTo(testManager.getConfiguration()); } }