BlockingQueue<String> queue = new ArrayBlockingQueue<String>(10);
HosebirdMessageProcessor processor = new StringDelimitedProcessor(queue);
processor.setup(stream);
// read until we hit the IOException
while (count < messages.length * 2) {
processor.process();
// trimming to get rid of the CRLF
assertTrue(messages[count].equals(queue.take().trim()));
count++;
}
fail();