NVList list = orb.create_list(2);
Any value = orb.create_any();
value.insert_Streamable(p1);
list.add_value(p1.getName(), value, p1.getMode());
value.insert_Streamable(p2);
list.add_value(p2.getName(), value, p2.getMode());
msg.setList(list);
NVList resultList = msg.getList();
assertTrue(resultList.count() == 2);