sender = new MockSender((chunkSize * count) + chunkSize);
monitor = new MockMonitor();
producer = new FixedProducer(sender, monitor, chunkSize * count);
for(int i = 0; i < count; i++) {
producer.produce(chunk, 0, chunkSize);
}
producer.close();
assertFalse(monitor.isError());
assertTrue(monitor.isReady());