}
public void testListBehaviorForIncommingMsg() throws Exception
{
BBEncoder encoder = new BBEncoder(1024);
encoder.writeList(_list);
AMQPEncodedListMessage m = new AMQPEncodedListMessage(new AMQMessageDelegate_0_10(),encoder.segment());
assertTrue("contains(Object) method did not return true as expected",m.contains(1));
assertFalse("contains(Object) method did not return false as expected",m.contains(5));
assertEquals("get(index) method returned incorrect value",((Integer)m.get(1)).intValue(),2);