PromiseCombiner { @Deprecated public void add(Promise promise) { add((Future) promise); }  @Deprecated void add(Promise promise); @SuppressWarnings({ "unchecked", "rawtypes" }) void add(Future future); @Deprecated void addAll(Promise... promises); @SuppressWarnings({ "unchecked", "rawtypes" }) void addAll(Future... futures); void finish(Promise<Void> aggregatePromise);  }
@Test(expected = NullPointerException.class) public void testAddNullPromise() { combiner.add(null); }