List<String> output = Lists.newArrayList();
Event event;
while ((event = channel.take()) != null) {
output.add(new String(event.getBody(), Charset.defaultCharset()));
}
transaction.commit();
// System.out.println("command : " + command);
// System.out.println("output : ");
// for( String line : output )
// System.out.println(line);
Assert.assertArrayEquals(expectedOutput, output.toArray(new String[]{}));