System.err.println("Starting SYNC_ACK");
int errC=0, nerrC=0;
for (int i=0; i<msgCount; i++) {
boolean error = Data.r.nextBoolean();
channel1.send(channel1.getMembers(),Data.createRandomData(error),GroupChannel.SEND_OPTIONS_SYNCHRONIZED_ACK|GroupChannel.SEND_OPTIONS_USE_ACK);
if ( error ) errC++; else nerrC++;
}
System.err.println("Finished SYNC_ACK");
assertEquals("Checking failure messages.",errC,listener1.errCnt);
assertEquals("Checking success messages.",nerrC,listener1.noErrCnt);
assertEquals("Checking all messages.",msgCount,listener1.noErrCnt+listener1.errCnt);
System.out.println("Listener 1 stats:");
listener1.printStats(System.out);