public void testConstructor2(){
  Executor e=Executors.newFixedThreadPool(1);
  SubmissionPublisher<Integer> p=new SubmissionPublisher<Integer>(e,8);
  checkInitialState(p);
  assertSame(p.getExecutor(),e);
  assertEquals(8,p.getMaxBufferCapacity());
}

public void testConstructor2 ( ) { Executor e = Executors . newFixedThreadPool ( 1 ) ; SubmissionPublisher < Integer > p = new SubmissionPublisher < Integer > ( e , 8 ) ; checkInitialState ( p ) ; assertSame ( p . getExecutor ( ) , e ) ; assertEquals ( 8 , p . getMaxBufferCapacity ( ) ) ; }
a new submissionpublisher has no subscribers , is not closed , has the given buffer size , and uses the given executor
