}
@Test
public void testCloseExcludeCache() throws ExecutionException, InterruptedException, ServletException, IOException {
UUIDBroadcasterCache cache = new UUIDBroadcasterCache();
SimpleBroadcaster b = config.getBroadcasterFactory().lookup(SimpleBroadcaster.class, "uuidTest", true);
b.getBroadcasterConfig().setBroadcasterCache(cache);
// Reset
b.removeAtmosphereResource(ar);
b.addAtmosphereResource(ar);
b.broadcast("foo").get();
ar.close();
b.removeAtmosphereResource(ar);
b.broadcast("raide").get();
assertEquals(cache.messages().isEmpty(), false);
List<Object> l = cache.retrieveFromCache(b.getID(), ar.uuid());
assertNotNull(l);
assertEquals(l.isEmpty(), false);
}