Instance consumer = consumerImpl.createInstance(null, null);
M1ConsumerImpl01 m1ConsumerImpl = (M1ConsumerImpl01) consumer
.getServiceObject();
M1ProducerImpl m1ProdImpl = (M1ProducerImpl) producer
.getServiceObject();
// TODO message: forcewire in message test
m1ConsumerImpl.getQueue();
for (int x = 0; x < POOL_SIZE; x++) {
m1ProdImpl.pushMessage(String.format("message %d", x));
}
Assert.assertTrue(String.format(
"Producer sent %d messages but the consumer received %d",
POOL_SIZE, m1ConsumerImpl.getQueue().size()), m1ConsumerImpl