@SuppressWarnings({"unchecked", "rawtypes"})
public class AwaitTests extends AbstractReactorTest {
@Test
public void testAwaitDoesntBlockUnnecessarily() throws InterruptedException {
ThreadPoolExecutorDispatcher dispatcher = new ThreadPoolExecutorDispatcher(4, 64);
Reactor innerReactor = Reactors.reactor().env(env).dispatcher(dispatcher).get();
for (int i = 0; i < 10000; i++) {
final Promise<String> deferred = Promises.<String>defer(env);